neverhome
11-04-2011, 08:11 PM
Hi there,
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"
objShell.Run(objCommand)
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe")
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"
objShell.Run(objCommand)
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe")