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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top