Hi guys,
This is a short little snippet I made that checks to see whether your current application is running or not.
This is probably the fastest program I have ever coded, it took me only around 40 seconds. 😎
This is a short little snippet I made that checks to see whether your current application is running or not.
Code
string filename = System.Diagnostics.Process.GetCurrentProcess().ProcessName;
Process[] process = Process.GetProcessesByName(filename);
if (process.Length == 0)
MessageBox.Show("Your program is not running :(");
else
MessageBox.Show("Your program is running!");This is probably the fastest program I have ever coded, it took me only around 40 seconds. 😎



