Skip to main content

ATIH 2013 /WAIT Failure

Thread needs solution

​Using ATI 2013 (v. 16.0.0.6682) configured for a full image followed by 3 incremental images. Win 7 Home 64 bit with roll-up on top of SP-1.

A full image is produced manually using the ATI GUI.

I normally run ATI using the following command in an unattended overnight batch where %SCRPT% contains the Script without the ending ".tib.tis":

  • START "" /WAIT "C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe" /script:%SCRPT%

The problem is that /WAIT does NOT work and my batch continues without waiting for ATI to complete. I have developed a batch "band aid" which checks every 15 min. to see if ATI is still running but I would prefer to use the /WAIT.
 

Below is my "band aid" which enters the following in the batch window:
     "ATI Running (Min): 5 10 15 5 10 15 5 10..."

  • [previous batch commands]
  • START "" /WAIT "C:\Program Files (x86)\Acronis\...
  • ECHO | SET /P "dummy=ATI Running (Min): "
  • :ATI_Running
  • FOR /L %%t IN (5,5,15) DO (
  • TIMEOUT 300 > NUL
  • ECHO | SET /P "dummy=%%t "
  • )
  • TASKLIST /FI "IMAGENAME eq TrueImage.exe" 2> NUL|FINDSTR /I "TrueImage.exe" > NUL
  • IF NOT ERRORLEVEL 1 GOTO ATI_Running
  • [batch continues]

Anyone know of a solution to have /WAIT work for ATI as it does for all other uses on my PC?

0 Users found this helpful

​I guess one should sleep on problems several times before declaring them.

TrueImageLauncher.exe is only a "calling program" which starts TrueImage.exe using the specified script. If one leaves the script off of the command line then TrueImage.exe opens its GUI and does not start a scan since one was not specified.

Obviously TrueImageLauncher.exe does its job and then quits so /WAIT is probably working OK.

There is no problem as I described and I now see two solutions:

  1. The "band aid" I offered.
  2. Use START "" /WAIT "C:\Program Files (x86)\Acronis\TrueImageHome\TrueImage.exe" which opens the GUI and then a "button pusher" program like PTFBpro to run the scan and monitor until ATI finishes and then close the GUI. The monitor requirement would be complex, perhaps watching CPU activity or some service ATI uses.

I will leave the "band aid" in place for now.

Sorry but I left off two additional steps.

1. Make a batch file with the following commands to shut off TrueImage.exe:

  • TASKKILL /IM TrueImage.exe /T
  • EXIT

2. Add the batch file to your image settings as a Custom Post-Command.

Now when the image is completed TrueImage.exe will be closed (killed) and my "band-aid" will allow the original batch to continue. I have slightly modified my "band-aid" to better report in the command window what is happening:

  • SET /A "_TTT=0"
  • ECHO | SET /P "dummy=ATI Running (1/4 Hr)"
  • :ATI_Running
  • FOR /L %%t IN (5,5,15) DO (
  • TIMEOUT 300 > NUL
  • ECHO | SET /P "dummy=."
  • )
  • SET /A "_TTT=%_TTT%+1"         
  • ECHO | SET /P "dummy=%_TTT%"
  • TASKLIST /FI "IMAGENAME eq TrueImage.exe" 2> NUL|FINDSTR /I "TrueImage.exe" > NUL
  • IF NOT ERRORLEVEL 1 GOTO ATI_Running

The message has a shorter line and the numbers are elapsed 1/4 hours:

ATI Running (1/4 Hr)...1...2...3...4...5..