Scripting error
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
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
Answers (2)
Please log in to answer
Posted by:
scottlutz
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.