[Mono-devel-list] Arguments with spaces when starting external program through System.Diagnostics.Process

Gonzalo Paniagua Javier gonzalo at ximian.com
Thu May 26 17:53:14 EDT 2005


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[1], argv[2], etc.)

You just need to use something like "'argument with spaces'" (note the
single quotes around the argument).

Using that and a shell script that does 'echo $#' I got '1' in the
output. Also, if you redirect the standard output, you better read it.

-Gonzalo





More information about the Mono-devel-list mailing list