Robocopy stop a failed job in the middle
Hi,
Since your question is really not about scripting but rather about how to use robocopy, I'm moving your post to a Windows 7 forum.
Bill
June 27th, 2012 10:43am
Thanks so much
Sorry about that
R White
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2012 10:51am
I have a couple 100 pcs I am coping files to one pc at a time so as not to choke out our network.
It is a very long batch file that check for a series of conditions before coping but the line that does the work once all conditions are met is the one below.
robocopy /IPG:6 g: \\%%i\c$\rootfolder\ /E /COPYALL /r:1 /w:6 /TEE /LOG:c:\temp\robologNewSMSDP.txt
Each PC has about 1000 files that it must copy. If even one file is missed or not copied it will check and put it to a list to go back to that PC. It is either all or nothing for this one.
The issue is if even one file is missed it keeps trying to copy the rest.
So say the 60<sup>th</sup> file it is trying to copy is not copied it still keeps coping the rest or trying to until they are all done or all missed. It is a waste of time as it will still need to go back to that pc.
I am seeing a user might turn off the computer and it still keeps on trying every one of the remaining files before it moves on.
Is there a switch I can use that says if even one file is missed to stop the robocopy so it can move on to the next ones?
ThanksR White
June 27th, 2012 10:52am
Hi,
Since your question is really not about scripting but rather about how to use robocopy, I'm moving your post to a Windows 7 forum.
Bill
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2012 10:55am
Thanks so much
Sorry about that
R White
June 27th, 2012 11:03am
Hi,
If we delete /r:1 /w:6 from the batch file, every file should be copied only one time.
You may refer to this.
http://technet.microsoft.com/en-us/library/cc733145(v=ws.10)
Please read Retry options.Kim Zhou
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 29th, 2012 5:50am
that was not what i was after but i think it is the best option and will speed the process up.
Thanks so much
R White
June 29th, 2012 3:25pm
Hi,
If we delete /r:1 /w:6 from the batch file, every file should be copied only one time.
You may refer to this.
http://technet.microsoft.com/en-us/library/cc733145(v=ws.10)
Please read Retry options.Kim Zhou
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2012 12:54pm