Skip to main content

How to run ATI from batch file

Thread needs solution

I would like to run ATI 2013 from a batch file. The problem is that the batch file does not wait until ATI has finished, and starts immediately the next step of the batch file. I have WIN8 installed.
This is the relevant part of my batch file:
--------------------------------------------------
"C:\Program Files (x86)\Acronis\TrueImageHome\TrueImage.exe" /script:D618B1FB-7945-490D-8DB2-9A6165BED8E4
copy S:\LOGFILES\udlog.log X:\CHECK\*.*
cd\
shutdown -s -f
--------------------------------------------------
Before and after ATI there are running several other tasks as part of the daily automated processes. On WIN XP with ATI 11 this worked fine. The batch waited until ATI had finished, then copies the log, and then shutdown.

How can handle this?
Thanks for your help.

0 Users found this helpful

First line
Change the TrueImage.exe to
TrueImageLauncher.exe
effective beginning with the 2011 version--if I remember correctly.

Addendum & Update.
You can use the TI program to create the command line.
Simulate editing the specific task. From inside the task
Right click on "Settings:
Click More
Click Create Shortcut
This procedure will cause a shortcut to be created on your desktop with the same name as your task name.
Right click on the desktop shortcut and you can copy the command line from insde the shortcut into your batch file.

The desktop shortcut can also be used to perform manual backups--if desired.

Consider adding this to your shutdown command to give you chance to stop the shutdown if you wish.
In Win 7 and 8, use the / instead of the - inside command files. You may also find you need the full path below.
shutdown /s /f /t 180 /c "Shutdown in 180 seconds"