Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine all current Win process
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064064
Message ID:
01064076
Views:
251
this works - but why?
What is winmgmts://localhost/root/cimv2
I have no evidence that it is on the PC anywhere - I see no help in VFP, Win, nor IE ???


>
FUNCTION KillAcrobat()
>	loCIMV2		= GetObject("winmgmts://localhost/root/cimv2")
>	loProcesses	= loCIMV2.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Acrobat.exe'")
>	IF loProcesses.Count > 0
>		For Each objProcess in loProcesses
>			objProcess.Terminate(0)
>		NEXT
>	ENDIF
>
>	RETURN
>ENDFUNC
>
Edgar L. Bolton, B.S. B.B.A.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform