Skip to main content

Task not started from external scheduler

Thread needs solution

Hello,

I am trying the 2019 Version build: 14110 (presently using 2017) and got a problem trying to start a True Image 2019 Task, from Windows Scheduler with the following command (working with the 2017 Version):

"C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe"

and with parameters;

/script:8B2F63B1-5CE0-4C7C-8594-09E9B8ACA11A

(which is the Task file name)

The Task is not started and the next start of True Image from the desktop displays a windows saying:

"Quelque chose ne fonctionne pas" in French (Something goes wrong)
Of course the windows ask to send an "Acronis System Report"....

I found also that the Windows Scheduler command is working if Acronis True Image is launched before the scheduled task.

So to circumvent the problem, i scheduled the task with the following steps:

  1. Launch True Image
  2. Wait 10 seconds
  3. Launch Task with the script parameter
  4. Kill True Image 

And this task is working.

Thanks for any answer.

Jean

 

0 Users found this helpful

Jean, this is a known change in behaviour with ATI 2019 that has caught out other users doing as you are in using the Windows Task Scheduler.

The way around this is to use a small batch command file to launch ATI as per the example below:

In Windows Task scheduler use:  cmd /c start "" "C:\Scripts\LaunchATI.bat"

LaunchATI.bat

@echo off
set ATI="C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe"
set task=49EC961C-D387-4E1A-9626-6AB47C5AE65D
c:
:: Check if TrueImage is already running, terminate if it is.
tasklist|find "TrueImage.exe"
if "%ERRORLEVEL%"=="0" (
wmic process where name="TrueImage.exe" delete
)
:: Launch the TrueImage Launcher as a hidden background task.
%ATI%
timeout /t 60
:: Launch the TrueImage task to be performed.
%ATI% /script:%task%
:: Wait for the task to finish as identified by the Post Command used.
:delaywait
if not exist BackupDone.txt (
timeout /t 60
goto delaywait
) else (
:: Terminate TrueImage to allow the main GUI to launch correctly.
wmic process where name="TrueImage.exe" delete
del BackupDone.txt
)

The last line of the script above tests for your backup being finished by checking for a simple empty text file being created by a post command in the task.

Post_Command.bat

@echo off
c:
echo Backup done > BackupDone.txt
exit

Many thanks Steve,

I modified my Windows Task Scheduler to be "more" conform to your bat file:

  1. Kill true image if running
  2. Launch True Image
  3. Wait 30 seconds
  4. Launch Task with the script parameter
  5. Wait 30 seconds
  6. Kill True Image if running

This task is working with this scheme.

The main concern of the bat file usage is that i need:

  1. One Windows scheduled task at the date and  time
  2. One bat file per Acronis task

Compared to the unique Windows task scheduler and two vbs script, common to all my backups ("Wait 30 seconds", and "Kill True Image if running").