MOVE command fails - Runtime Error

(imported topic written by Matt.Johnson)

New Day - New Challange:

I am trying to write a simple action to:

  1. Distribute a small batch file to a workstation

  2. 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?

(imported comment written by Matt.Johnson)

I appologize for the orginal Subject Header - I was exploring a different way to perform the action, and forgot to replace the subject. The question is still valid.

(imported comment written by Matt.Johnson)

Due to the title, I have re-posted under the proper heading. I don’t see a way to delete this question. So if an admin happens to see this please delete this question.