On Thu, 9 Mar 2006 11:01:26 +0100 (MET) "Malte Dreschert" <[EMAIL PROTECTED]> 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; p.Start(); this code create a dir called test in the home folder of the user myname. Read the Process class documentation for more options bye Salvatore ---------------------<| LAAS --------------------------<| http://laas.altervista.org ----<| _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
