Platform: Windows Server 2012R2
In the rule editor I am looking to utilize the "Run the command" action which works, but only for executables with no spaces in the filename or path. Any EXE with a space in the path or filename results in a "The command was not found. Please check that the path is correct and try again." error notification when pressing "Test".
I can't seem to find any combination of quoting mechanism that will make it work correctly.
Working example:
- Code: Select all
C:\Temp\cURL\curl.exe http://host/Some/REST/call
Non-working examples:
- Code: Select all
C:\Program Files\cURL\curl.exe http://host/Some/REST/call
"C:\Program Files\cURL\curl.exe" http://host/Some/REST/call
'C:\Program Files\cURL\curl.exe' http://host/Some/REST/call
