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

Sebastian Nowozin nowozin at gmail.com
Mon May 23 00:10:38 EDT 2005


Hi Miquel R.,

On 5/22/05, Miquel Ramírez <mvorkosigan at gmail.com> wrote:

> You must escape also the backlashes. For instance, to invoke a program like this
> $ tar -cf rock.tar This file rocks.txt
> the command string in you C# program should be:
> "tar -cf rock.tar This\\ file \\ rocks.txt"

Thanks, that was it.  I actually tried it, but the shell script file
is invalid in that I use parameter $1 unescaped, so its broken down
again in the shellscript, not in Mono.  Sorry for blaming Mono ;-)

Thanks,
Sebastian



More information about the Mono-devel-list mailing list