Re: Is it running?



Michael Hesse wrote:
Is there an easy way to tell if a process is running on a computer? I know
the process name.

In what sense "running"? And what is the name you know, the exe?
Basically you can enumerate all processes in the system and then
check their status... See 'EnumProcesses' API function. There is
an example in MSDN docs.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


.



Relevant Pages

  • Re: ShellExecute
    ... >> (GetProcessID), then enumerate the processes ... > CreateToolhelp32Snapshot won't return a full path to the EXE under the ... > NT kernel, just the exe name. ...
    (microsoft.public.vb.general.discussion)
  • Re: Is it running?
    ... Michael Hesse wrote: ... I believe you would have to enumerate all running processes and for each ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: VB6 Restore Minimized Window - External Application
    ... >I know the EXE name of the application that I want to call. ... >Knowing the EXE name and knowing that only one copy of the EXE will be ... Offhand the only way I know would be to enumerate the running ... you get one who's PID matches. ...
    (microsoft.public.vb.winapi)
  • Re: Getting class names with the API?
    ... enumerate the subclasses of an IWbemServices object? ... in an EXE. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Finding Full Path to Process EXE
    ... I would like to write a script that would enumerate all running ... processes and return the full path to the EXE of each running ... (You want the .ExecutablePath or .CommandLine attributes I imagine) ...
    (comp.lang.python)

Loading