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:
01064084
Views:
193
Man, just when you think you know it all, They write another chapter...

:->

Thanks again

>It's Windows Management Instrumentation (WMI). See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp
>
>>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
Reply
Map
View

Click here to load this message in the networking platform