Alors, je suis une débutante. j'ai voulu executer un .exe en c à partir d'une interface c#, j'ai alors écris ce code :
mais en compilant ca n'accepte pas la déclaration du processus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 Process MyProcess = new Process(); MyProcess.StartInfo = new ProcessStartInfo(@"c:\compil2.exe"); MyProcess.StartInfo.UseShellExecute = false; MyProcess.StartInfo.RedirectStandardOutput = true; MyProcess.Start(); this.textBox1.Text = MyProcess.StandardOutput.ReadToEnd();
Pouvez vous m'aidez SVP?







Répondre avec citation







Partager