[Mono-devel-list] Arguments with spaces when startingexternalprogram through System.Diagnostics.Process

Gonzalo Paniagua Javier gonzalo at ximian.com
Thu May 26 19:06:41 EDT 2005

On Thu, 2005-05-26 at 18:56 -0400, Jonathan Gilbert wrote:
> At 06:16 PM 26/05/2005 -0400, Gonzalo wrote:
> >On Thu, 2005-05-26 at 17:59 -0400, Jonathan Gilbert wrote:
> >> At 05:53 PM 26/05/2005 -0400, Gonzalo wrote:
> >> >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 ;-).
> You may have tried it yourself with mono on Windows, but I myself tried it
> with Microsoft's implementation on Windows. Here is my test:

I tried the original test sent but run 'notepad' instead and quoted the
argument with single quotes. It worked fine on windows with the MS


More information about the Mono-devel-list mailing list