I have a script that looks like this:

On Success
1. Launch "Sys\cmd.exe" with params "/C "program files\dell\kace\kinventory.exe -autorepair"


Or like this when I edit

On Success
1. launch a program
Directory: SYS
File: cmd.exe
Wait for startup
Parameters: /C "c:\program files\dell\kace\kinventory.exe -autorepair


It seems like a " is missing or extra in those variations.

When I run it I get this in the log:

Output Log Running as: SYSTEM Error creating process: C:\WINDOWS\System32\cmd.exe /C "c:\program files\dell\kace\kinventory.exe -autorepair: (1) Incorrect function.
Activity Log Launching program: 'C:\WINDOWS\System32\cmd.exe' '/C "c:\program files\dell\kace\kinventory.exe -autorepair' wait='true'


I have seen that error "error creating process:...Incorrect function" in other scripts I have run.
What is the secret here?
Thanks.

Jane
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You may want to close the quotes off after kinventory.exe, before the switch.
Answered 11/22/2011 by: scottlutz
Orange Senior Belt

Please log in to comment
0
That was it. Thanks. I find it confusing when it adds quotes.
Answered 11/22/2011 by: jfrasier
Seventh Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity