using System.Diagnostics;//using namespace
Process[] ps = Process.GetProcessesByName("ipmsg");
if (ps != null)
{
//
foreach (Process p in ps)
{
MessageBox.Show(p.StartTime.ToString()); //Show the time of the process runned
p.Kill(); //kill the process
}
}
Process[] ps = Process.GetProcessesByName("ipmsg");
if (ps != null)
{
//
foreach (Process p in ps)
{
MessageBox.Show(p.StartTime.ToString()); //Show the time of the process runned
p.Kill(); //kill the process
}
}