[MonoDevelop] Custom command path with space

SamuelCLopez SamuelCLopez at mega.zik.dj
Tue Jan 25 05:19:27 EST 2011


Hi

I'm using MonoDevelop 2.4.2 on Windows XP with .Net 3.5.

I want to execute a command which path contains a space (as it's under
"C:\Program Files\").
If I just browse to it, the Command text box simply contains the path
without any quotes, and when I execute it the MonoDevelop External Console
tells me that "C:\Program" isn't recognized.

If I add double quotes around the path (what I would usually do in Windows
in such a case), then in MonoDevelop Application Output I get "Command
execution failed. Illegal characters in path." (I tried with simple quotes
and it's not happy either).

If I point to a path containing no space, or if I just write the command
name and the path is know in %PATH%, then it works.

If I just write the application name in the Command text box and the path
(with white space) in the Working Directory text box then it also works (but
in my case I need the Working Directory to be something else).

How can I make it work? Is there an escape character to use?

Thanks
  Sam
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Custom-command-path-with-space-tp3235828p3235828.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list