backupto and wipe sequence

Discuss and share scripts and script files...
Post Reply
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

backupto and wipe sequence

Post 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??

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

Re: backupto and wipe sequence

Post by highend »

Code: Select all

setting('BackgroundFileOps', 0);
At the beginning of the script.
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: backupto and wipe sequence

Post 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 '

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

Re: backupto and wipe sequence

Post 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.
One of my scripts helped you out? Please donate via Paypal

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

Re: backupto and wipe sequence

Post by swan_x »

guys...but you try your script???
for me nothing work correctly!!
in any case, whit or whitout () the script not work!
To see the attached files, you need to log into the forum.

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

Re: backupto and wipe sequence

Post 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?
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: backupto and wipe sequence

Post by PeterH »

Funny: some minutes, again :P

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

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

Re: backupto and wipe sequence

Post 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??

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

Re: backupto and wipe sequence

Post by highend »

Because you didn't indent all lines after the first one.
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: backupto and wipe sequence

Post 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.

Post Reply