using System;
using System.Diagnostics;
public class ExempleProcess
{
public static void Main()
{
Process process = new Process();
process.StartInfo.FileName = "cmd.exe";
// Argument de ligne de commande
process.StartInfo.Arguments = "/c dir *.cs";
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
string output = process.StandardOutput.ReadToEnd();
Console.WriteLine("Affichage:n{0}",output);
}
}