Scheduled Task to run a url

Posted on 2012-08-21
Last Modified: 2012-08-22
Hi.  I am running a server 2008 r2 server and I would like to use a scheduled task in windows to run a URL every 5 minutes.  Does anyone have any idea how to do this?

This is the URL that I woudl like to run:

Question by:hmcnasty
    LVL 21

    Accepted Solution

    I would create a scheduled task that ran daily and repeated every 5 minutes. The task would run a program point it to a vbscript that opened the required webpage. Copy and paste the following code into a text file and rename it with a .vbs extension. I tested this method and works well.


    Here is a tutorial on creating a scheduled task:

    LVL 16

    Assisted Solution

    by:Brian Pringle
    You can create a scheduled task to run the following, which could be a batch file

    start "C:\Program Files\Internet Explorer\iexplore.exe"

    Author Comment

    Thanks fellas, both worked perfectly.  Here's the catch how do I close it or just keep refreshing the browser after the task runs?  Right now it would just keep opening browser windows or tabs.  Since it runs every 5 min or so I need to find a way to close it after.

    LVL 16

    Expert Comment

    by:Brian Pringle
    You can do that in Task Scheduler.  You have the option of how long to let the task run or how many times it should be run.  The command I gave above only calls it once, so you would have to schedule however often or how many times you want it to run.
    LVL 2

    Expert Comment

    Can you better describe your goal? You can simply kill all browser windows before you open new one but I guess this is not what you want.

    Author Closing Comment

    Thanks guys.  As I wrote earlier both examples worked perfecly.  I ended up writing another .bat file and used the taskkill command in it to kill internet explorer.  I have them staggered.  works like a charm.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now