error on script moveto

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

ok now try. and sorry... then:

Code: Select all

setting "BackgroundFileOps", 0; step; delete 0,0, "D:\.........\*.*"; moveto "D:\.......", "C:\.........\*";

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

i've tested now. i have follow all your suggestion, but xys file is always auto-deleted after run script.
with add step; script every time stopped and stops several times and to continue you must press "Continue"
but in the end nothing changes: the script file deletes itself from both the first and the second instance of XY

and i have run my xys from script xy folder and also on another folder, same result
same with only one instance of XY (or two instance), nothing change. file deletes itself.

but i have see that the file deletes itself after the command:

Code: Select all

delete 0, 0, formatlist(listfolder("D:\000\tmp\spify_downloader\yosbu_down\App\YouMP3\qm\", , 1), "F", , "!qt_en.qm|YouGomP3.en.qm", "f");

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

Re: error on script moveto

Post by highend »

Code: Select all

text formatlist(listfolder("D:\000\tmp\spify_downloader\yosbu_down\App\YouMP3\qm\", , 1), "F", , "!qt_en.qm|YouGomP3.en.qm", "f");
Output of that command is?
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

is ???
output is delete all files into qm folders except 2 files... and then? what correlation with xys file?

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

Re: error on script moveto

Post by highend »

You obviously didn't use the command that I've posted. Sorry, I just can't spend more time on this...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

with:

Code: Select all

delete 0, 0, text formatlist(listfolder("D:\000\tmp\spify_downloader\yosbu_down\App\YouMP3\qm\", , 1), "F", , "!qt_en.qm|YouTubeToMP3.en.qm", "f");
file xys don't self-delete, but on folder qm i don't have file exception, all files are copied...

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

no one else can answer to this question? i don't understand what is my mistake ...

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: error on script moveto

Post by RalphM »

You were given the recipe further above to solve that mystery yourself but chose not to use the help and output that "step;" provides to figure out which of your commands is responsible for the self-delete but rather expect others here to help out.
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

no, sorry, i don't agree.
i have used step; function as suggested and i realized that the problem was after the command delete 0, 0, formatlist(listfolder
so i was suggested to use command text thing i did but i don't know if i put it in the right place...
as i did the script eventually always has the same error, it self-deletes. that's why i wrote here to ask you where I'm wrong, but no one can suggest to me what I (myself) don't understand...

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: error on script moveto

Post by RalphM »

You are the only one with access to the specifics of your search patterns and the files present - no one else can help you to figure out which of your patterns might match the script file itself and thus delete it.
Good luck anyway.
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: error on script moveto

Post by swan_x »

if you want really help me, you can try my script command.... and run it from XY Scripting menu - Load selected script file
after step delete 0, 0, formatlist(listfolder file delete itself.

anyway i've try a new road: i took my script and modified it, simplifying, like this:

Code: Select all

delete 0, 0, formatlist(listfolder("C:\qm\", , 1), "F", , "!file_ab.qm|file_cd.qm", "f");
this in the qm folder deletes all the files except the 2 files file_ab.qm and file_cd.qm.
and if i run this my script file remains intact. it's the same command I use in the original script file. I still don't understand why the first script deletes itself while the second works fine ...

Post Reply