Is Program Running detection from Win32 Console

  • Thread starter Thread starter Joe Caverly
  • Start date Start date
J

Joe Caverly

Hi,
I'm looking for a Win32 Console program that will accept a filename
from the console, see if the program is running, and then return an
errorlevel indicating whether the program is running or not.

Example;

ISRUNNING netdrive.exe

If netdrive.exe is presently running in memory, then an errorlevel >
0 would be returned. If netdrive.exe was not presently running in
memory, an errorlevel of 0 would be returned.

I'm running WIN98SE.

Thanks,

Joe
 
I'm looking for a Win32 Console program that will accept a filename
from the console, see if the program is running, and then return an
errorlevel indicating whether the program is running or not.

Look here:

http://www.xmlsp.com/pview/prcview.htm

This process viewer has a command line tool (pv.exe) included, which
will work as requested.

BeAr
 
Back
Top