Detect Word is running

  • Thread starter Thread starter Alan T
  • Start date Start date
How do I detect MS Word is already running?

hi
check the process running on OS, and look is anyone is the winword.exe
 
hi
check the process running on OS, and look is anyone is the winword.exe

Here is a code snippet that may help:
//using System.Diagnostics;
Process p = Process.GetProcessById(nProcessID);
string sProcess = p.ProcessName;
 

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