Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know that a program is running
Message
 
 
To
18/09/2006 12:12:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154741
Message ID:
01154747
Views:
8
>HI NAOMI,
> Exe name
>
>THANKS


I think there are better ways to find if the program is running, but you may also try this:
loCIMV2		= GetObject("winmgmts://localhost/root/cimv2")
loProcesses	= loCimv2.ExecQuery("SELECT * FROM Win32_Process WHERE Name LIKE 'vfp%'")
For Each objProcess in loProcesses
	objProcess.Terminate(0)
Next
This program terminates processes like VFP...

See also Re: Kill remote process Thread #1142445 Message #1142467
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform