Page 2 of 2

Re: rename file from clipboard

Posted: 27 Jan 2021 09:38
by swan_x
different script but same conceptual error....

Image

try with 2 different folder with same number of files inside, but the result is always the same as shown in the figure above...

Re: rename file from clipboard

Posted: 27 Jan 2021 09:41
by swan_x
script work fine if i add one another files to folder2...
then x files on folder1------x+1 files on folder2 work fine.
but this is a bug of xy.

Re: rename file from clipboard

Posted: 27 Jan 2021 09:46
by highend
There is no bug in XY.

Replace this line:
$cntClp = trim(gettoken($clp, "count", <crlf>), <crlf>, "R");
with
$cntClp = gettoken(trim($clp, <crlf>, "R"), "count", <crlf>);

Re: rename file from clipboard

Posted: 27 Jan 2021 10:08
by swan_x
oh yesssss!!!

finally work fine! very tanxs for your support! Regards