Skip to main content

ATIH 2011 fails when executing PRE-COMMAND and POST-COMMAND.

Thread needs solution

1) I am running ATIH 2011 freshly installed over ATIH 2009. Acronis is Update 2 (Build 6868)
2) OS is Vista 64, sp2
3) The same Pre-command and Post-command worked perfectly in ATIH 2009
4) The failure in the log says: "At least one of the parameters in the child process is invalid"
and then "Execution of.........bat failed. Error code:1.
5) My bat files do not use any parameters.
6) They fail consistently if I run Acronis or use the "Test command" button.
7) if I run either of the bat files in a DOS window, they run perfectly.

Any help will be very, very welcome. At this point Acronis is dead for me.

Thanks
Jim Calvert

0 Users found this helpful

It is possible that a command batch fails because of the "user" launching the script from the scheduler doesn't have the privileges to execute some command in your batch.

An alternative is to use Windows Task scheduler, create a task that runs your commands and then launch ATI's task.

Jim,
You could rename the file extension from .bat to .cmd
am see if that helps. Command files sometimes work better.

Consider uploading the bat file as as a .txt file attachment. Maybe we can suggest some alternate wording.

Grover, thanks for your reply. I have found the solution to this issue.
I moved the location of the .bat commands from C: to E:.

C: was the disk I was backing up. Sounds weird but that fixed it. They now run perfectly.

Cheers
Jim Calvert

GroverH wrote:

Jim,
You could rename the file extension from .bat to .cmd
am see if that helps. Command files sometimes work better.

Grover: similiar problem
1. I have ATI2009 and I have successfully used Pre/Post commands in Vista 32 when I moved the bat files to System32 folder
2. I have installed Win7 64 bit and installed ATI2009 in Win 7 and it is working fine, now I want to set up my backup jobs with pre/post commands.
3. I moved the same bat files to Win7 64 bit System32 folder and I can see the files using Explorer but when I run ATI2009 and search with the Edit function inside of Pre/Post commands I can not see the bat files
4. I renamed the bat files to cmd and I still can not see the bat file using the edit function inside of ATI2009 pre/post command. The bat and cmd files are in System32 folder, but ATI2009 Pre/Post command can not see them for selection.
5. these are simple DOS bat files for running defrag, Scan, Robocopy

A few things to check.
In Control Panel/Folder Options/View

uncheck Show hidden files, folders,and drives
uncheck Hide extensions for known file types
uncheck Hide protected operating system files

Also suggest that you save the bat files as command file *.cmd
You may have to give the command file more authority.

Also check the file attributes of the missing files to make sure they are not hidden.

GroverH wrote:

Also suggest that you save the bat files as command file *.cmd
You may have to give the command file more authority.

1. the cmd/bat files are not hidden, I can see the files using Explorer, it is just Acronis Pre/Post Commands > Edit that can not see them
2. "give command files more authority" - will this help me to see them in Acronis Pre/Post commands > edit,
2.a if so is this something I do in Win 7?

in testing your problem, I found the same issue as you but if I copied to C:\Windows
the files were visible via the pre/post pre command.

Tomorrow, if I get a chance, I will look at little further about now seeing them in system32. We know they are there but Windows is keeping us from seeing them.

GrovreH: - trying to use C:\Root was one of my plans. I think you have a solution for me, I will try it. Thank you so much.

If you still have issues, inside your command/batch files, you may need to include a full path rather than just the name of the file.

You have been so helpful with this. I tried your solution for pre/post commands and it works just fine.
1. I have another issue when I went from Vista 32 bit to Win 7 64 bit. E-mail notification used to work but now doesn't. I know ATI2009 is out of date but I like it and would like to get e-mail notification working again.
2. e-mail screen 1
address--> myname @telus.net
outgoing --> smtp.telus.net port 25
--> all other fields left blank

e-mail screen 2 - this is a bit of a trick to fill in
must check box for log on
--> fill in pop.telus.net port 110
must uncheck box for log on
--> fill in subject and from fields
--> tick bottom 3 boxes for what notifications to send

perform a test message which works on Vista but fails on Win 7
I can live without e-mail notification but would like ti to work, I have tried filling in user id and password on e-mail screen 1 but no luck

First, if I were you, I would edit your preceding post and remove or use a fake email address. Leaving the address there will increase your spam. I don't have access to a 2009 version install so I have no way of testing your issue. The 2009 and 2010 and 2011 all had issues for some with email notification.

There are some reference links in the knowledge base lookup.

The picture below works in 2012.

thank you again,
I got it working in ATI2009 using Win7, I had to make it Exactly as it was in Vista and XP
I had filled in the From and Subject fields, when I put these blank again, everything worked.
BTW - I took your suggestion about a fake e-mail address - that was my intention all along