Salta al contenuto principale

script not found

Thread needs solution

I have 3 logical drives in 1 physical drive. I've setup individual imaging for the 1st, 2nd and 3rd drive. So I don't have to wait for drive 1 to finish I created a bat file to launch the 2nd image. This automatically happens when drive 1 finished using the post command in the options.

Before Acronis True Image 2016 everything launched fine.

Get a new PC with Windows 10 and install Acronis True Image 2016. Create the image jobs for each drive and modify the post command bat files to point to the new script guids.

If I stay in the Acronis GUI everything works fine. Drive 1 finished and launches the image job for drive 2.

However, if I exit out of the Acronis GUI then Drive 1 finishes and when the post command runs I get "Cannot find the backup settings this shortcut points to"

Here is an example of the post command bat file

"C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe" /script:AE508EBA-F273-48C9-9633-3C6E43ECAD88

Why is the script AE508EBA-F273-48C9-9633-3C6E43ECAD88 not found if the Acronis UI is closed?

Remember this works fine if the Acronis UI is open. It also worked fine in prior versions even if the Acronis UI was closed.

Any ideas?

Thanks.

0 Users found this helpful

I'm not really sure as I don't typically use batch processes in my backups.  

I know this doesn't solve this particular issue, but couldn't you just as easily just create 3 backups with scheduled job times (one for each drive) and set when you want them to backup (daily at a certain time, weekly, etc as needed).  Unless you absolutely need each job to run one-right-after the other this should basically do the same thing in a much simpler way and they'll just run at the times that you tell them to.  

AND... if you do need them to run back-to-back-to-, set them to each run at the same time, but schedule them 1 minute apart.  That way, the first one will run at the original scheduled/desired time... the second will queue up behind it since it will kick off 1 minute later while the first job is alreday in progress... and the third one will queue up behind the second one for the same reason.  Once they are quied up they should run immediately after the one before it finishes.  And, just like you're used to with your previous method, you won't have to have Acronis launched for these scheduled backups to run.  

Path needs modifying.

After the (x86) there needs to be a single space before the \Acronis

See my example

http://forum.acronis.com/forum/109820#comment-321040

 

You can also browse to the laucher exe file and get the path by holding down on the shift key and right click the exe and choose the copy to path which will put it into the clip board.

 

Ignore the above. It is not correct and not the correction.

Exactly what is the content of the batch file which has script command?

 

Awesome!  Thanks for clarifying!  

Just curious, but is there a KB article that explains why the extra space is needed in the path name?  I'd be pulling my hair out too since I'd be using the real path name and would never think to add an extra space.  Why would you - in any other script or .bat file I've ever used, the correct path name is how Windows labels it?

Could you change the path to the full path instead as well? On my Win10 x64 sytem, the full path is actually:

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

Edit-update.

The posting was not correct.

I will post back.

 

Wow, I must have been past  my bedtime for that type a mistake to occur. I will correct. Thank you for the info and is my face red!

Hmmm, I've never done this so will have to test in Acronis too.  However, I can open command prompt and enter one of my scripts:

"C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe" /script:A81602BE-04EF-4425-87A8-737323CCCD7C

And, before it runs, Windows "UAC" kicks in and requires me to allow administrative access.  I could run command prompt as administrator first and then it won't prompt so I'm guessing that UAC may be the problem if this is creating a scheduled task in Windows and it is not running with the highest credentials and/or is not set to run unless logged on already.

 

Yes, the cure is normally to open Notepad with "run as administrator" and save accordingly.

Or, Win 10 may like the file file extension "cmd" rather than "bat".

You may also need to add a delay command inside the bat file before the script is run.

OK, I got it to work.  However, it didn't seem to like it when I put the command in directly (see attached screenshot).  Instead, I saved the command as a .bat file on my desktop.  I then added the .bat file as the post command for my new test backup and it automatically selected the working directory below that.  Saved my new test backup script (just some very small test .txt files) and sheduled it to run automatically, 1 minute from now.

Completely closed out Acronis and watched for the Acronis icon to show up in the Windows Start Bar.

Like clockwork, it showed up and I hovered over it and it showed the name of my new test backup running.

Knowing it would only take a few seconds to run the new test backup, I then moved the mouse and hovered over the icon again and it now showed the name of the existing backup (my incremental Windows User Profile backup) that was appended as a POST command.

AT no point did I open Acronis.... When the Acronis Start Menu icon went away, I navigated to my Windows Profile backup location and sure enough there was a new incremental backup file with a timestamp of just now.

Launched Arconis and both my new test backup and the existing User profile backup that was added as a POST command to the new test backup both show as completed with timestamps that correspond to the scheduled job and the post command that just completed.

Maybe your existing command doesn't have the correct "working directory" listed?  I'm not sure since you said it does run when you're actually in Acronis.  Try creating a .bat file with your commands and reference that instead if manually just entering the command.  If you're already referencing an existing .bat file, make sure that wherever it is located has the correct permissions set on it so that the account that setup the backup has access to that .bat file (worked for me because I did everything under my user profile and I was logged into my user profile at the time - although Acronis was not launched.  

I suppose I should test by scheduling the backup with the POST command and logging out to to be doubley sure though.

Allegato Dimensione
321405-124912.jpg 63.09 KB
321405-124915.jpg 40.87 KB
321405-124918.jpg 43.87 KB

Confirmed to still be working after completely logging out.  Set the test script to run in 2 minutes.  Logged off the computer completely.  Logged back in about 15 minutes later and both the test backup and the POST batch script backup ran successfully.  As far as I can tell, the POST command .bat file is working with ATIH 2016 (v6027)  and Win10 x 64 Pro (1511 build 10856.36)

Thanks, but not interested in this solution. Want the ability to run batch post commands and chain my backups together like I was able to do up to version 2014.

Was ready to ask if the path was a joke as with the extra space this is an invalid path.

It's not the Windows UAC interfering. Acronis pops up a message box with "cannot find the backup this shortcut points to"

I"m not sure if you realize or not, but we're not Acronis employees and not obligated to provide assistance.  A little appreciation for our assistance in helping isn't needed (we do this because we like to tinker and troubleshoot and help others), but how you interact with us in the forums may help determine whether or not someone chooses to respond or not.  

I was not able to replicate the exact same issue.  However, a similar issue occured after manually deleting older backup files (a full chain) from my backup where the POST chain would have normally written to.  Once I did that, the first backup would run on schedule, but the POST chain backup would fail.  To fix it, I would then have to launch Acronis and (pretend - just go through the motions, but not actually complete this next part) to recover from the latest backup.  As soon as it scans the avaialble backups, it would prompt that files in the backup were missing (a warning message).  I'd have to "ignore" all of the error messages (if you deleted multiple .TIBS you have to do it for each one), until all the warning messages went away.  After that, the version chains using the POST commands started working again.  

Because Acronis has History checking, this may be similar in your case - not really sure.  Hope that helps, but if not, I no longer feel compelled to provide any additional assistance to this issue.

J Smith,

If I understand correctly, you manually start first backup via the "Back up now" option

When the backup is done, the post command of that task runs bat 1

Bat 1 does a backup on another drive and when that backup is done,

the post command of the 2nd backup runs bat 2.

Bat 2 does a backup on another drive letter.

Does backup 2 also shutdown the computerZ?

Would you post an attachment  upload copy of bat 1 and bat 2 but you will need to zip or rename them to txt.

J Smith,

I was not able to get it to work until after I did a cleanup and a reinstall. Then, I was able to get it to work--but my procedure may differ from yours.

If you are still interested, come back to the forum for futher discussion.