Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close IE window 1

Status
Not open for further replies.

Romans58

Technical User
Jan 5, 2004
7
AU
Currently running an app install across the network via http by running a client side batch that calls a vbscript.
After running the install I would like to automaticaaly close the Instance of IE.
As the app takes varying times to install due to differing banwidths, Sendkeys is not appropriate.
I would like a way to check to see if the install has finished then close the window.
Any help would be greatly appreciated.
 
If your client side script is called with the Run method of the WshShell object, you can wait for completion with a 3rd argument set to true:
Code:
Set Sh=WScript.CreateObject("WScript.Shell")
RC=Sh.Run("YourCommand",1,True)
window.Close


Hope This Help
PH.
 
Excellent. That does the job. Thank You
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top