Using VBScript to launce a URL minimized

I am trying to write a script to launch an URL in a minimized Browser window.  I can get the URL to launch but not minimized.

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """http://www.live365.com/cgi-bin/mini.cgi?stream=1270682&genre=&site=live365&tm=6713""", 0,TRUE
BMCISAdminAsked:
Who is Participating?
 
exx1976Connect With a Mentor Commented:
This works.


Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """c:\program files\internet explorer\iexplore.exe"" http://www.live365.com/cgi-bin/mini.cgi?stream=1270682&genre=&site=live365&tm=6713""",2

Open in new window

0
 
merowingerCommented:
Agree with exx1976.
Another option is to start the page, but hide IE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = False
objIE.Navigate "http://www.live365.com/cgi-bin/mini.cgi?stream=1270682&genre=&site=live365&tm=6713"

Open in new window

0
All Courses

From novice to tech pro — start learning today.