Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is an exe running
Message
From
19/07/2012 09:26:46
 
 
To
19/07/2012 09:16:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01548807
Message ID:
01548814
Views:
93
This message has been marked as a message which has helped to the initial question of the thread.
For some cases you can use getobject() and check if you get an object reference or not. However, WinApi is extremely fast, and the overhead is most likely not noticeable.

>Yeah, I did find Sergey's solution just now. I notice it checks all running processes. Is there a way to just check the one exe I am interested in? The reason I ask is that I want to check every 5 minutes and it seems a CPU waste to keep checking all running processes when you just want to know if this one is running. Or is this so low overhead as to be of no consequence?
>
>http://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it
>
>
>>http://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it
>>
>>>Hi All,
>>>
>>>Old question - what is the recommended way to check if a program, e.g. xyz.exe, is running or not?
>>>
>>>tia
e
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform