This website may use cookies. More info. That's Fine x
Welcome Login

Using Windows Task Scheduler to call or open a webpage URL


Asp.Net

You can use Task Scheduler to schedule calls to a webpage url every mins/hours/daily/month or other schedule time.

 

Steps:

1. Create a Visual Basic script:

Call CallUrl()

Sub CallUrl()
On Error Resume Next

Dim objRequest
Dim URL

Set objRequest = CreateObject("Microsoft.XMLHTTP")
URL = "http://www.andrew.sin.com/index.pl?doScheduler=1"

objRequest.open "POST", URL , false
objRequest.Send
Set objRequest = Nothing
End Sub

 

2. Use Task Schedule to schedule call(s) to the vbs script, ie: run the vbs script at specified times.


Created on: Thursday, July 28, 2011 by Andrew Sin