/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Why is the Task Builder including the working directory in the commandline when I create a windows application post task?

07/29/2015 2220 views
This seems to be messing things up. When I troubleshoot this buy editing the failed post task during the deployment, I remove the directory path from the commandline and the task works fine. I am seeing alot of other examples on ITninja where the path is not in the command line and I;m not sure why the task keeps getting created this way. Also seems to be no way to edit this in the Task XML in PEinst after it is created.

I place this: cmd /c rez_change.exe /x:1920 /y:1080 in the parameter field when creating the task and I get this: "%systemdrive%\KACE\Applications\58\cmd /c rez_change.exe" /x:1920 /y:1080 in the task XML. It adds the path and the quotes and makes it fail.

HELP!
Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

2
you don’t need cmd /c for rez change, it is an exe.
Just use rez_change.exe /x:1920 /y:1080

-Corey
Answered 07/29/2015 by: cserrins
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • Thanks Corey, thought I had tried that and it failed but I just did it that way and it worked.

All Answers

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ