Coded UI - Close process by process name
This is an example to close Firefox, but can be used for any other process:
//close Firefox
Process[] processes = Process.GetProcessesByName("firefox");
foreach (Process process in processes)
{
process.Kill();
process.WaitForExit();
}
No comments:
Post a Comment