Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-04-2011, 09:11 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
Help with simple .vbs script. Close then re-open IE.
I need help with a very simple vbs script - I don't do a lot of this, so please forgive my lack of knowledge!
All I need to do is close all currently open Internet Explorer windows. Then re-open IE full screen, to our homepage.
This is the closest I've come up with (it runs in two separate scripts), but it doesn't work properly as it kills IE - so I get errors when I try to re-open it. I also really need it to work in one script!
Set objShell = CreateObject("Wscript.Shell")
objCommand = "taskkill /F /IM iexplore.exe /T"
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe")