[Mono-devel-list] Arguments with spaces when starting externalprogram through System.Diagnostics.Process
2a5gjx302 at sneakemail.com
Thu May 26 17:59:07 EDT 2005
At 05:53 PM 26/05/2005 -0400, Gonzalo wrote:
>On Sun, 2005-05-22 at 09:56 +0800, Sebastian Nowozin wrote:
>> Hence, my question:
>> Is it possible to explicitly escape the arguments, or - alternatively
>> - a way to explicitly set each argument vector on its own? (like
>> argv, argv, etc.)
>You just need to use something like "'argument with spaces'" (note the
>single quotes around the argument).
I doubt single quotes will work across platforms, though. It would be much
better form to use double-quotes, which will be recognized on Windows and
presumably other .NET runtimes as well.
"programname \"argument with spaces\" \"another argument with spaces\""
More information about the Mono-devel-list