Page 1 of 1

backupto and wipe sequence

Posted: 29 Dec 2012 23:26
by swan_x
i want a simple script to backupto my file abc.txt from D:\000 to D:\apps\ and after wipe this file abc.txt from D:\000\. I have try this:
backupto "D:\apps\", "D:\000\abc.txt", 2, 0, 0, 0, 0, 0, 0;
wipe "D:\000\abc.txt"

but this not work in sequence mode! suggestion??

Re: backupto and wipe sequence

Posted: 30 Dec 2012 00:22
by highend

Code: Select all

setting('BackgroundFileOps', 0);
At the beginning of the script.

Re: backupto and wipe sequence

Posted: 30 Dec 2012 00:24
by PeterH
What does:
swan_x wrote:but this not work in sequence mode!
mean?

Maybe the backupto is executed in the background, so wipe is executed before backupto ended? Then you should add as first command:

Code: Select all

   setting "BackgroundFileOps", 0;
This will temporarily (for execution of this script) stop background operation and execute all commands in sequence.

Edit: 2 minutes too slow :biggrin:

But I think without ()
No matter if " or '

Re: backupto and wipe sequence

Posted: 30 Dec 2012 01:55
by highend
Edit: 2 minutes too slow
That's the two minutes that matter!
But I think without ()
Can be used with or without them. Works in both cases.

Re: backupto and wipe sequence

Posted: 30 Dec 2012 09:51
by swan_x
guys...but you try your script???
for me nothing work correctly!!
in any case, whit or whitout () the script not work!

Re: backupto and wipe sequence

Posted: 30 Dec 2012 10:33
by highend
guys...but you try your script???
No, why should we?
in any case, whit or whitout () the script not work!
And the error message looks like? And if there isn't any error message, what's going wrong?

Re: backupto and wipe sequence

Posted: 30 Dec 2012 11:36
by PeterH
Funny: some minutes, again :P

And I think I'll write nothing more - highend said it yet :roll:

Re: backupto and wipe sequence

Posted: 30 Dec 2012 15:05
by swan_x
this script dont run the operation (1-backupto 2-after delete the file) but i see little windows with 2 choice (see my previous attachment ) :roll:
i want run this 2 operation in sequence...it's possible??

Re: backupto and wipe sequence

Posted: 30 Dec 2012 15:37
by highend
Because you didn't indent all lines after the first one.

Re: backupto and wipe sequence

Posted: 30 Dec 2012 15:58
by PeterH
highend wrote:Because you didn't indent all lines after the first one.
Ough :shock: :shock: :shock:

I wouldn't have seen / recognized this, so: :appl: :appl: :appl:

And to be said: if I would have tested, I would not have tested this!
(I think noone had...)

Why do I write this here?
I want to request everyone asking for help to explain, as good as he can, what happens if something goes wrong!
That would be the best way to help those who want to help.