[Mono-devel-list] Arguments with spaces when starting externalprogram through System.Diagnostics.Process
Gonzalo Paniagua Javier
gonzalo at ximian.com
Thu May 26 18:16:17 EDT 2005
On Thu, 2005-05-26 at 17:59 -0400, Jonathan Gilbert wrote:
> 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.
I doubt that people that doubt without testing are right. In fact, this
time I'm sure they are not right ;-).
More information about the Mono-devel-list