Image 4 Windows - Batch file WRONG

User discussion and information resource forum for Image products.
Post Reply
BriComp
Posts: 2
Joined: Thu Jan 27, 2022 1:12 pm

Image 4 Windows - Batch file WRONG

Post by BriComp »

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.
TeraByte Support
Posts: 3629
Joined: Thu May 05, 2011 10:37 pm

Re: Image 4 Windows - Batch file WRONG

Post by TeraByte Support »

It's not wrong, it's an option in IFW to wait for any prior running process to stop before it continues.
BriComp
Posts: 2
Joined: Thu Jan 27, 2022 1:12 pm

Re: Image 4 Windows - Batch file WRONG

Post by BriComp »

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.
tas3086
Posts: 321
Joined: Mon Mar 19, 2012 6:15 pm

Re: Image 4 Windows - Batch file WRONG

Post by tas3086 »

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