Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is an exe running
Message
From
19/07/2012 09:28:47
 
 
To
19/07/2012 09:26:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01548807
Message ID:
01548816
Views:
69
OK,thanks.

Thanks Sergey.


>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
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform