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.