Monday, September 20, 2010 4:27:00 PM
0So you want to know if a process is running...
using System.Diagnostics;
public static bool IsProcessAlreadyRunning()
{
Process currentProcess = Process.GetCurrentProcess();
List<Process> processes = Process.GetProcesses().Where(x=>x.ProcessName == currentProcess.ProcessName).ToList<Process>();
return (processes.Count > 1);
}