1.

Solve : Batch to refresh IE?

Answer»

I don't know all that much about batch FILES, but what I'm trying to do is make a batch that will refresh internet explorer about every 10 seconds...I'm doing it for my Dad for his FARM markets. If ANYONE could help me out or give me somewhere to start it would be really appretiated.
Thanks,
RevThe good new is that most of Microsoft's products are scriptable. The bad news is that batch language has problems with WINDOWS programs.

This little script may give you some ideas:

Code: [Select]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

Change the http address to what you need. After saving the script with a VBS extension, you can run the script as: cscript scriptname.vbs

Good luck. 8-)

Note: the only way to end the script is to cancel cscript in the task managerThanks, it works great!!



Discussion

No Comment Found