Page 3 of 3
Re: error on script moveto
Posted: 10 Nov 2020 10:08
by swan_x
ok now try. and sorry... then:
Code: Select all
setting "BackgroundFileOps", 0; step; delete 0,0, "D:\.........\*.*"; moveto "D:\.......", "C:\.........\*";
Re: error on script moveto
Posted: 10 Nov 2020 15:23
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");
Re: error on script moveto
Posted: 10 Nov 2020 15:39
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?
Re: error on script moveto
Posted: 10 Nov 2020 18:00
by swan_x
is ???
output is delete all files into qm folders except 2 files... and then? what correlation with xys file?
Re: error on script moveto
Posted: 10 Nov 2020 18:18
by highend
You obviously didn't use the command that I've posted. Sorry, I just can't spend more time on this...
Re: error on script moveto
Posted: 10 Nov 2020 18:37
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...
Re: error on script moveto
Posted: 11 Nov 2020 15:00
by swan_x
no one else can answer to this question? i don't understand what is my mistake ...
Re: error on script moveto
Posted: 12 Nov 2020 08:27
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.
Re: error on script moveto
Posted: 12 Nov 2020 09:47
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...
Re: error on script moveto
Posted: 12 Nov 2020 11:51
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.
Re: error on script moveto
Posted: 12 Nov 2020 14:55
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 ...