Does the script work on x64 if you run it outside of a BigFix task?
You could pipe the script output to help with debugging. Example:
dos “{pathname of system folder}\cscript.exe” “{((pathname of client folder of current site) & “__Download\TSMConfig.vbs”)}” > C:\TSMConfig-Output.log 2<&1
2<&1 redirects stderr. Otherwise, you probably wouldn’t see the error in the text log.
So here is the move and run portion of the action script as it is now:
MOVE __createfile __Download\TSMConfig.vbs
action uses wow64 redirection true
dos “{pathname of system folder}\cscript.exe” “{((pathname of client folder of current site) & “__Download\TSMConfig.vbs”)}” > C:\TSMConfig-Output.log 2<&1
This was all that was in the logfile: The filename, directory name, or volume label syntax is incorrect.
Again, it works great if I just double click it out of the __Download folder.
Thanks for the help, guys. Boyd, that output pipe is especially helpful.
be a bug in the dos command. It seems like it isn’t parsing arguments surrounded by quotes properly. I’m seeing some strange behavior when quotes surround the curly braces.
This should work fine (assuming it exists):
wait cmd.exe /c “”{pathname of system folder}\cscript.exe" “{((pathname of client folder of current site) & “__Download\TSMConfig.vbs”)}” > C:\TSMConfig-Output.log 2<&1"
This throws the “syntax is incorrect” error:
dos “{pathname of system folder}\cscript.exe” “{((pathname of client folder of current site) & “__Download\TSMConfig.vbs”)}” > C:\TSMConfig-Output.log 2<&1
So does this:
dos “{pathname of system folder}\cscript.exe” {("%22" & (pathname of client folder of current site) & “__Download\TSMConfig.vbs%22”)} > C:\TSMConfig-Output.log 2<&1