Page 1 of 3
error on script moveto
Posted: 06 Nov 2020 09:53
by swan_x
i have this simple script:
Code: Select all
delete 0,0, "D:\000\egosum\*.*"; moveto "D:\000\egosum\", "C:\alterkero\";
but this copy only all files to egosum folder, not also subfolder (on C:\alterkero\ i have some files and some folders)
so, i have try:
Code: Select all
delete 0,0, "D:\000\egosum\*.*"; moveto "D:\000\egosum\", "C:\alterkero\*.*";
but without result. all subfolder they are not moved, but only the files.
where is the mistake?
Re: error on script moveto
Posted: 06 Nov 2020 10:02
by highend
Not "*.*" but "*"
Re: error on script moveto
Posted: 06 Nov 2020 17:09
by swan_x
tanxs for your reply.
but today i don't find my post and i have write the same post again...
next time you (or who did it) move a post at least notified via PM ....
Re: error on script moveto
Posted: 06 Nov 2020 17:24
by swan_x
ok. now on destination folder (egosum), on one specific folder (qtm folder) i want delete all files on yhis folder except 2 files...
Code: Select all
delete 0,0, ""D:\000\egosum\qtm\*.*";";
but how to exclude 2 files from this specific folder?
Re: error on script moveto
Posted: 06 Nov 2020 17:43
by highend
on one specific folder (qtm folder) i want delete all files on yhis folder except 2 files...
Code: Select all
delete 1, 0, formatlist(listfolder("D:\000\egosum\qtm\", , 1), "F", , "!<file 1 without path>|<file 2 without path>", "f");
Re: error on script moveto
Posted: 06 Nov 2020 19:26
by swan_x
not work.
Code: Select all
delete 1, 0, formatlist(listfolder("D:\000\ergosum\qm\", , 1), "F", , "!<file1>|<file2>", "f");
specified path could not be found
Re: error on script moveto
Posted: 06 Nov 2020 20:31
by highend
Maybe double check that you're using the correct folder, then?
All examples used "egosum" and your last one is "ergosum" instead...
Re: error on script moveto
Posted: 06 Nov 2020 23:29
by swan_x
right, on last post i have change name folder, but that's not the problem...
this is only an example. on my pc i have different folder name.
i have checked correct name on my pc, but problem is another....
also with this more simple command:
Code: Select all
delete 0,0, "D:\0011\4923\*.*"; moveto "D:\0011\4923", "C:\0000045\*"; delete 0, 0, "D:\0011\4923\file001.dat";
file file001.dat is not deleted....
Re: error on script moveto
Posted: 06 Nov 2020 23:31
by highend
setting "BackgroundFileOps", 0;
Use that as the first command...
Re: error on script moveto
Posted: 07 Nov 2020 08:59
by swan_x
wow! very nice. all work correctly.
many tanxs for your support. cheers!
Re: error on script moveto
Posted: 07 Nov 2020 15:12
by swan_x
little problem. finally i have this script
Code: Select all
setting "BackgroundFileOps", 0; delete 0,0, "D:\000\33489234824666\*.*"; moveto "D:\000\33489234824666", "D:\000\28489234824923\*"; delete 0, 0, "D:\000\33489234824666\ring.wav|D:\000\33489234824666\unins000.dat|D:\000\33489234824666\unins000.msg|D:\000\33489234824666\unins000.exe"; delete 0, 0, formatlist(listfolder("D:\000\33489234824666\qm\", , 1), "F", , "!<qt_en.qm>|<ksa.en.qm>", "f");
this work correctly but at final on qm folder all files are deleted (no exception for qt_en.qm and ksa.en.qm files)....
Re: error on script moveto
Posted: 07 Nov 2020 15:19
by highend
Do you really think that <qt_en.qm>|<ksa.en.qm> are valid file names?
Hint: No^^
Re: error on script moveto
Posted: 07 Nov 2020 15:36
by swan_x
i have follow your suggestion:
Code: Select all
formatlist(listfolder("D:\000\egosum\qtm\", , 1), "F", , "!<file 1 without path>|<file 2 without path>", "f");
<
file 1 without path>|<
file 2 without path>"
where is my mistake?
Re: error on script moveto
Posted: 07 Nov 2020 15:37
by highend
Those were placeholders, not real file names or since when does Windows allow < or > in a file name?
Re: error on script moveto
Posted: 07 Nov 2020 16:50
by swan_x
ah, yes. understand. now work. tanxs again
