View Single Post
Old 15-09-2009, 23:42   #3
Energy++
Senior Member
 
Iscritto dal: Oct 2005
Messaggi: 1059
allora devi usare la classe Process che si trova nel namespace System.Diagnostics:

Codice:
Process p = new Process();
p.StartInfo.FileName = "programma.exe";
p.StartInfo.Arguments = "argomenti";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();    

Console.WriteLine(p.StandardOutput.ReadToEnd());

p.WaitForExit();
saluti
Energy++ è offline   Rispondi citando il messaggio o parte di esso