Action Script for the CMD fixlet

Hi, Can you help me in writing the action script for the CMD file in Fixlet. I am using below script for .cmd File, but I am not getting any output

"wait {"cmd.exe /c " & value of variable "SystemDrive" of environment & ("\ProgramData\DSE\BigFix\" & parameter "_app_name" & "\Install.cmd Install"}

Can you help in solving this? Thanks

A bit simpler I think:

wait cmd.exe /c {name of drive of system folder as string & "\ProgramData\DSE\BigFix\" & (parameter "appname" as string) & "\Install.cmd Install"}

Hi Jmaple,

Thanks for the Action script, but when I am running it, I am still getting the errors like this Command failed (Relevance substitution failed) wait //Clean-up Temp files, this should not need to change
delete "__Download/{parameter "_app_file_name_PSE"}". Not only for this single fixlet, I am facing the same problem for 5 to 6 different kind of fixlets on Batch files.

I don’t understand why it is not getting fixed. Can you help in fixing my fixlet, Thanks.

Is it possible that your install.cmd is opening a new command session? If so, I don’t think the variables will survive and that’s why you are getting the relevance substitution error.

It is not opening any thing, not even log file is creating. In the middle of the process it is showing the fixlet is not relevant and process is getting failed.

Could you give the snip of the action script that is failing? I’m not really understanding the error you’ve posted.

Paste in your action script, and be sure to use the blockquote (highlight it and select the </> icon in the Wiki editor).

If your line really is

wait //Clean-up Temp files, this should not need to change
delete "_Download/{parameter "app_file_name_PSE"}"

then that’s an error. The “wait” command requires a parameter - the command to execute. You can’t have

wait //comment

any more than you can have

wait

by itself.

Maybe you intend something like

wait "__Download/{parameter "app_file_name_PSE"}"
//Clean-up Temp files, this should not need to change
delete "__Download/{parameter "app_file_name_PSE"}"