Skip to main content

Cannot add pre-command to backup job

Thread needs solution

I add the following pre-command to a backup job:

"C:\Program Files\CCleaner\CCleaner.exe" /auto

When I click the Test Command button, it says the command failed. It doesn't show a console window so I can see the output of the command that ATI decided to run (which can't be what I specified). Since I'm in the middle of defining a backup job, I can't see if there's an entry in the log for this error (but the log entries aren't that informative, anyway). This command DOES WORK!!!

This is the same command for a shortcut in a toolbar in the Windows taskbar that I use several times every day. The command works. Since ATI doesn't bother to show why it claims the command fails means I have nothing to focus on for troubleshooting.

UPDATE

Figured it out.  Acronis mislabelled the field.  It says "Command:".  A command has a source object (usually an executable file but could be an internal command) and arguments.  A command is the entire string.  Guess here it's a disadvantage to be old enough to have started under MS/IBM DOS and UNIX with just a console window to work with.  Acronis doesn't parse this string so it isn't really a command.  The actual used of this field is to specify a program filename, so it should be called "Program file:". 

I noticed there was a separate "Arguments:" field, so I removed the argument from the command string (so now it was just the program file) and moved it to the "Arguments:" field.  Now the setup was:

  • Command: "C:\Program Files\CCleaner\CCleaner.exe"
  • Working directory:
  • Arguments: /auto

That it could work with.

0 Users found this helpful