Image 4 Windows - Batch file WRONG
Posted: Sun Mar 31, 2024 1:33 pm
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.
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.