Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / December 2004



Tip: Looking for answers? Try searching our database.

Detecting an EXE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mo - 31 Dec 2004 03:30 GMT
Is there a way in VB to detect an exe or other program is running?

Mo
alpine - 31 Dec 2004 07:21 GMT
>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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.