1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| try
{
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "cd c:\\Program Files\\Nipper";
MessageBox.Show("exécution 1 terminer");
p.StartInfo.Arguments = @"nipper --input=routeur.txt --output=D:\\out.html";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.Start();
p.WaitForExit();
MessageBox.Show("Exécution terminée, affichage du résultat...");
webBrowser1.Navigate("file:///" + Directory.GetCurrentDirectory().Replace("\\", "/") + "/out.html");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "!!!!");
}
}
}
} |
Partager