[Mono-list] (no subject)

Salvatore Scarciglia s.scarciglia at hyperphar.com
Thu Mar 9 05:11:43 EST 2006

On Thu, 9 Mar 2006 11:01:26 +0100 (MET)
"Malte Dreschert" <Draetsch at gmx.de> wrote:

> I want to execute a commandline tool from within my mono application. How
> can I do this?
In a try/catch block use the following code:

Process p = new Process();
p.StartInfo.FileName = "/bin/mkdir";
p.StartInfo.Arguments = "-p /home/myname/test";
p.StartInfo.UseShellExecute = true;
p.StartInfo.CreateNoWindow = true;

this code create a dir called test in the home folder of the user myname.

Read the Process class documentation for more options


Salvatore ---------------------<|
LAAS --------------------------<|
http://laas.altervista.org ----<|

More information about the Mono-list mailing list