Find a running executable

  • Thread starter Thread starter Roy
  • Start date Start date
R

Roy

Is there a way to find out if an executable (with known full path for the exe
file) is running or not in C#?
 
Roy said:
Is there a way to find out if an executable (with known full path for the exe
file) is running or not in C#?

Yes. See:

Process.GetProcesses()
Process.MainModule
ProcessModule.FileName

(All in the System.Diagnostics namespace)
 
Back
Top