Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroy a Windows process
Message
From
14/05/2002 11:35:21
 
 
To
14/05/2002 09:34:00
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00656021
Message ID:
00656183
Views:
9
>Thnaks for your help, Larry
>
>Settled for:-
>
>RUN KILL /F iexplore
>
>as iexplore is a "constant"

If the item of interest is -always- IE, you'd be better off using the Shell.Application object's Windows collection to iterate through instances of the browser, and close the one(s) of (dis)interest explicit by invoking the instnace's Quit method. If you have more than one IE instance running, KILL as shown does not guarentee the correct instance dies; using the WIndows collection to examine the InternetExplorer.Application instance properties for each instance makes steering to the right thing to kill much easier.

>
>Dennis
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform