>Is there a way in VB to detect an exe or other program is running?
>
>Mo
Lot's of ways.
Depending on what you need to accomplish, this could be as simple as
using the FindWindow API function or, as complex enumerating
processes. Maybe if you explain further what you need, someone can
offer more specific suggestions.
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
Mario Fuller - 31 Dec 2004 15:02 GMT
Your right Brian.
What I'm trying to do is write code to detect if VNC.exe (Virtual
Networking Computing) program has been loaded or running. Just to let
you know the vnc program is running in windows services.
Hope this clear for you
Mo
Juergen Thuemmler - 31 Dec 2004 16:27 GMT
> What I'm trying to do is write code to detect if VNC.exe (Virtual
> Networking Computing) program has been loaded or running. Just to let
> you know the vnc program is running in windows services.
When this program creates at least one window, the best way is to install
a system wide shell hook which informs you immediately about the program
start (for an example see
http://www.mentalis.org/vbexamples/list.php?category=MISC, DSCBTSHL).
If not, you can use a timer an periodically check for the progs process like
shown in
http://www.mentalis.org/vbexamples/vbexample.php?vbexample=PROCENUM.
Juergen.