Folder creation error since upgrading to 21.20

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
bababarghi
Posts: 22
Joined: 01 May 2014 01:40

Folder creation error since upgrading to 21.20

Post by bababarghi »

Hi All,

I have been using script below for a while but it throws an error since the recent upgrade and I can't my get my head around the causing issue.

Upon activation, it creates a folder (folder name gets asked via INPUT window) and then goes to the created folder.

Code: Select all

$mystr = ". ".<clipboard>;copytext(new(input("Folder Name", ,$mystr ), "dir"));
  $mystr = <clipboard>;
  $path=<clipboard>;
  $mystr = $mystr."\Email.pdf";
  $mystr = RegexReplace("$mystr", "\r?\n?", "");
  copytext $mystr;
  goto $path;
Here is the error msg:

Image

The path length is around 160 characters.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Folder creation error since upgrading to 21.20

Post by highend »

And what's exactly the content of your clipboard before you execute that script?
One of my scripts helped you out? Please donate via Paypal

bababarghi
Posts: 22
Joined: 01 May 2014 01:40

Re: Folder creation error since upgrading to 21.20

Post by bababarghi »

highend wrote: ↑03 Nov 2020 07:21 And what's exactly the content of your clipboard before you execute that script?
A 20 characters long string (supposedly my new folder's name)

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Folder creation error since upgrading to 21.20

Post by highend »

Last try... Show the content (as a string, not a screenshot) of the line (of your "Input" window) before you finally hit the "OK" button
One of my scripts helped you out? Please donate via Paypal

bababarghi
Posts: 22
Joined: 01 May 2014 01:40

Re: Folder creation error since upgrading to 21.20

Post by bababarghi »

Problem solved. The issue wasn't upgrading to v21.20

I had removed the leading space in the script lines. Adding them back, the script is working again.

Image

Post Reply