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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Noob: Login VBS Script execute URL question

Status
Not open for further replies.

jskinner123

IS-IT--Management
Nov 25, 2008
3
0
0
US
Hi Everyone,

I need to create a Login VBS script that will some how "run" the URL below, but so that it is behind the scenes and the user does not see a web browser open then cleans itself up and closes everything upon completion. Is this possible?


Thanks!
 
To do just what you ask and no more (remove echo's to use in logon script):
Code:
Set objIE = CreateObject("InternetExplorer.Application")
   objIE.Visible = FALSE 'hide the browser
   objIE.Navigate "[URL unfurl="true"]http://www.tek-tips.com"[/URL]
   Do Until objIE.Busy = FALSE
      WScript.Echo "IE is still busy...page not ready..."
      WScript.Sleep 500
   Loop
WScript.Echo "IE not busy, closing browser object"
objIE.Quit

You can do a lot with this, see [link msdn.microsoft.com/en-us/library/aa752084(v=vs.85).aspx]InternetExplorer Object[/url] for more possibilities...

Hope this helps you...I don't get much help here myself, but this one was just too easy to leave unattended :)

Merry Christmas!
DigiMahn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top