Aller au contenu principal

Pre-command is hanging on the Test function

Thread needs solution

I created a backup task pre-command batch file to test whether or not to actually run the backup. This was done to run a backup on the first and third Tuesday of the month. I works on my system running Windows 10. I then copied the batch file to my wife's Windows 7 machine. When I set up the pre-command and click the Test button, the command prompt window opens up and it just hangs there. I tested the batch file outside of Acronis True Image and it worked as planned. Any ideas?

0 Users found this helpful

I was able to prevent the hang... On Windows 10, the pre-command batch file was called with the .bat extension. On Windows 7 I had to remove the .bat extension to get it to run.

Once I got the file to run, the next problem is that it always succeeds. I stuck lots of echos and pauses in the batch file and am sure it is executing correctly (as also verified by executing it from a command prompt), but even though I have error returns (exit /b 1), Acronis is never seeing it as an error.

My old brain hurts.