The /WAIT command is in the wrong place and IS NOT functional.
As presented by Terrabyte:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w1 /f:"\\sserver\d\Tom\Drive H Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$"
Needs changing to:
start /WAIT "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /b /d:w1 /f:"\\sserver\d\Tom\Drive H Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$"
i.e. the /WAIT needs to be at the beginning of the start command stream, otherwise it is ignored and no wait occurs.
Image 4 Windows - Batch file WRONG
-
- Posts: 3738
- Joined: Thu May 05, 2011 10:37 pm
Re: Image 4 Windows - Batch file WRONG
It's not wrong, it's an option in IFW to wait for any prior running process to stop before it continues.
Re: Image 4 Windows - Batch file WRONG
I know what it is for AND IT IS WRONG.
As used by IFW it is ignored by windows (as I said wrote).
The only way to get Windows to recognise it is to have it immediately after start as in start /WAIT "" C:\Programs.....
Try it if you don't believe me, it will only take a few minutes.
As used by IFW it is ignored by windows (as I said wrote).
The only way to get Windows to recognise it is to have it immediately after start as in start /WAIT "" C:\Programs.....
Try it if you don't believe me, it will only take a few minutes.
Re: Image 4 Windows - Batch file WRONG
In the above ecamples, the /WAIT is a start option, and the /wait is an imagew64 option. You can use both at the same time, and they both do completely different things.