How To Setup Windows Scheduled Task To Access a Web Page (.htm, .asp, .aspx, ...) Periodically?


Sometimes you need to access a web page periodically in your Windows 2008/2003 server.


You can write a .vbs script file and schedule it as Windows task (CScript C:\YourScript.vbs //H:CScript).


        Call Send_HTTP_Request()

        Sub Send_HTTP_Request()

                'Force the script to finish on an error.
                On Error Resume Next

                'Declare variables
                Dim objRequest
                Dim URL

                Set objRequest = CreateObject("Microsoft.XMLHTTP")

                'Put together the URL link appending the Variables.
                URL = ""

                'Open the HTTP request and pass the URL to the objRequest object
       "POST", URL , false

                'Send the HTML Request

                'Set the object to nothing
                Set objRequest = Nothing

        End Sub


Other Knowledgebase Articles

Basic Windows Hosting

# of Domains: 4
# of SQL Server Databases: 4
Disk Space: 50GB
Bandwidth: Unmetered
SQL Server 2016
Monthly: $4.99
More Information About Free Shared Windows Hosting Plan

Express Hyper-V Hosting

Dedicated Memory:2GB
Disk Space: 120GB
Bandwidth: Unmetered
Windows 2016/2012: Free
Monthly: $11.99
More Information About Express Windows Hyper-V Server

Dedicated Windows Server

CPU: Quad-Core X3440 CPU
Disk: 2x120GB SSD + 300GB SATA
Bandwidth: Unmetered
Windows 2016/2012: Free
Monthly: $79.00
More Information About Dedicated Windows Server with SSD
Kubernetes Hosting | Windows VPS Hosting | SQL Server Hosting | ASP.NET Hosting | Windows Hyper-V Hosting | Dedicated SQL Server Hosting | Dedicated Windows Hosting | DNN Hosting
Cloud Application Hosting | MongoDB Hosting | CockroachDB Hosting | MySQL Hosting | MariaDB Hosting | Wordpress Hosting | Magento Hosting | Drupal Hosting | PostgreSQL Hosting | OpenCart Hosting | Redis Hosting | SQL Server Cloud Hosting