goombawaho
MIS
I have a batch file set to run as a scheduled task on Windows 7 and XP machines. It's supposed to copy the contents of three folders (actually mirror them) to a server folder one at a time. In essence, three separate copy jobs, one after the other.
This works in XP with the same batch file, but in W7, all three copy jobs start immediately. In XP, the first copy job completes and the second copy job starts in the same CMD window.
By the way, the CMD window is hidden in Windows 7 while it is running whereas it is visible in XP. Not sure if these are two separate issues or related. I would prefer the windows to be visible.
start /wait /b "Job 1" robocopy.exe C:\Users\jimmo\BobOutlook \\server1\shared\mailbackup\jimmo\Bob /MIR /ZB /R:2 /W:5 /LOG:"c:\backup1.log"
start /wait /b "Job 2" robocopy.exe C:\Users\jimmo\LarryOutlook \\server1\shared\mailbackup\jimmo\Larry /MIR /ZB /R:2 /W:5 /LOG:"c:\backup2.log"
start /wait /b "Job 3" robocopy.exe C:\Users\jimmo\AppData\Local\Microsoft\Outlook \\server1\shared\mailbackup\jimmo\jimmo /MIR /ZB /R:2 /W:5 /LOG:"c:\backup3.log"
This works in XP with the same batch file, but in W7, all three copy jobs start immediately. In XP, the first copy job completes and the second copy job starts in the same CMD window.
By the way, the CMD window is hidden in Windows 7 while it is running whereas it is visible in XP. Not sure if these are two separate issues or related. I would prefer the windows to be visible.
start /wait /b "Job 1" robocopy.exe C:\Users\jimmo\BobOutlook \\server1\shared\mailbackup\jimmo\Bob /MIR /ZB /R:2 /W:5 /LOG:"c:\backup1.log"
start /wait /b "Job 2" robocopy.exe C:\Users\jimmo\LarryOutlook \\server1\shared\mailbackup\jimmo\Larry /MIR /ZB /R:2 /W:5 /LOG:"c:\backup2.log"
start /wait /b "Job 3" robocopy.exe C:\Users\jimmo\AppData\Local\Microsoft\Outlook \\server1\shared\mailbackup\jimmo\jimmo /MIR /ZB /R:2 /W:5 /LOG:"c:\backup3.log"