05-21-2007 02:50 PM
Solved! Go to Solution.
05-21-2007 03:16 PM
05-21-2007 03:37 PM
05-21-2007 04:07 PM
05-21-2007 06:03 PM
I'm going to have to commit this one to memory or myself
"Now where did I put my memory, Oh YA it's inside my brain, DUH"
05-21-2007 06:52 PM
06-23-2011 05:10 AM
Hi,
I tried the suggestion given by you. But I am getting different output every time.
How can I determine whether my exe is running or not?
Regards,
Rathnam.M
06-24-2011 10:39 AM
You are getting a different output because the task list is changing every time you run it. However, if the exe you are interested in is running, it will be listed in the output from tasklist, no matter what else is there. Just search the list for the exe you want. If the search results turn up empty, the exe is not running. You must know the exact name of the exe. To see what it is called, run tasklist in a cmd window. Notice the list of tasks running. Then run your exe and run tasklist again. Look for the exe name. This is what you should search for.
06-24-2011 11:02 AM
Here is some code that will determine if an exe is running. I used Search and Replace String because I can set the ignore case to true so I don't have to exactly match the case. Some tasks show up as all upper case, such as WINWORD.EXE. By setting ignore case to True, I can type winword.exe in my search control.
07-19-2011 04:23 AM
Thank you. Sorry for the late reply.