Close

Cannot run commands with spaces in filename or path

Having trouble with Sighthound Video? Post here for help.

Moderator: Staff

no avatar
luma
 
Posts: 14
Joined: Sat Nov 28, 2015 11:54 am

Cannot run commands with spaces in filename or path

by luma » Sun Nov 29, 2015 5:35 pm

Version: Sighthound Basic Edition v2.5.1 build 15102
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

Return to Technical Support