Schedule a task to call a web page using Task scheduler in windows
Posted January 21, 2011on:
One of the requirement during the maintenance for one of the project was to call a web page iteratively on a scheduled time.
I find one interesting article posting script how to run scheduled task to call a web page using task scheduler in windows.
All you have to do is save following script in a .vbs file, and schedule it to run on windows scheduler.
Here it is:
‘Force the script to finish on an error.
On Error Resume Next
Set objRequest = CreateObject(“Microsoft.XMLHTTP”)
‘Put together the URL link appending the Variables.
URL = “http://localhost:82/image-sitemap-generator.aspx”
‘Open the HTTP request and pass the URL to the objRequest object
objRequest.open “POST”, URL , false
‘Send the HTML Request
‘Set the object to nothing
Set objRequest = Nothing
You can find more detail from here for implementation of this: