Page 1 of 1
moveto no confirmation
Posted: 28 Dec 2012 17:23
by swan_x
it's possible move one file from folder to folder and overwrite old version of this file but whitout confirmation?
with script: moveto "D:\app\", "D:\000\abc.txt"
work correctly, but XY required confirmation to overwrite.
whit the 2 = Overwrite it's possible only for backupto.
and i don't want disable this from option-file operation-on collision-ask
another suggestion??
Re: moveto no confirmation
Posted: 28 Dec 2012 17:33
by highend
And why don't you use backupto in this case and a delete afterwards?
Re: moveto no confirmation
Posted: 28 Dec 2012 18:04
by swan_x
yes i know! but it's no possible overwrite this but no confirmation on collision?
now i run my script and click ok on overwrite, but why 2 = Overwrite it's possible only for backupto??
Re: moveto no confirmation
Posted: 28 Dec 2012 19:52
by serendipity
swan_x wrote:yes i know! but it's no possible overwrite this but no confirmation on collision?
now i run my script and click ok on overwrite, but why 2 = Overwrite it's possible only for backupto??
I dont remember why Don did not provide overwrite option for moveto in scripting, but I did not understand your concern with what highend suggested.
He suggests this:
Code: Select all
//Moveto (force overwrite) without prompt
backupto "D:\app\", "D:\000\abc.txt", 2;
delete 1,0,"D:\000\abc.txt";// Delete to recycle bin without prompt
Re: moveto no confirmation
Posted: 28 Dec 2012 22:15
by PeterH
Doesn't moveto on same drive only rename, but no physical copy?
But another possible solution: first (maybe test and then) delete destination file, then moveto?
Re: moveto no confirmation
Posted: 29 Dec 2012 10:13
by swan_x
@ serendipity
yes! tanxs! now i have understand! nice script!
@ PeterH
yes another good suggestion! txs
Re: moveto no confirmation
Posted: 29 Dec 2012 14:57
by swan_x
ok i try backupto, and after this i want wipe my file...
what is the correct script for this??
backupto ............
wipe D:\000\file.txt
with this run the script but not in sequence