(imported topic written by Matt.Johnson)
New Day - New Challange:
I am trying to write a simple action to:
-
Distribute a small batch file to a workstation
-
Execute that batch file as SYSTEM
So my relevance code works, Now I am working on the action. I have used the following actions to try and complete the task:
download http://SERVER.FQD.DOM:PORT/Uploads/0eede14c0b20352b1c726d415d9ebc898281de3c/TurnOnBIT.bat.tmp
continue if {(size of it = 91 AND sha1 of it = “0eede14c0b20352b1c726d415d9ebc898281de3c”) of file “TurnOnBIT.bat.tmp” of folder “__Download”}
extract TurnOnBIT.bat.tmp
wait “{pathname of system folder & “\cmd.exe”}” /Q /C "{(pathname of client folder of current site) & “__Download\TurnOnBIT.bat”}
(NOTE I changed the server name for security)
It errors out on the WAIT line (5) - Stating that validation failed (Relevance clauses must be surrounded by { and } guards. Now this code was generated by the Software Distrbution Wizzard, and the line does seem to be surrounded by guards. So why is this failing to execute?