Thursday, March 12, 2015

VBS Script to auto-refresh a web-page at certain interval

Though this may not be related to Oracle as such, I just thought of sharing a way to auto-refresh a web page at certain intervals

Save the below script as a VBS file on your machine and go to Command Prompt (you may need to "Run as Administrator" on Win7 etc) and give the command cscript filename.vbs

Set IE = CreateObject("InternetExplorer.Application")
With IE
  .Navigate "http://www.yahoo.com"    ' change to actual site needed
  .Visible = True
End With

Do While True
  WScript.Sleep 10000    ' 10 seconds
  IE.Refresh()
Loop

Cheers
A

No comments:

Post a Comment