Link to home
Start Free TrialLog in
Avatar of hmcnasty
hmcnasty

asked on

Scheduled Task to run a url

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:

http://something.com/public/index.php?path_info=frequently&code=4gGJR

Wes
ASKER CERTIFIED SOLUTION
Avatar of Ivano Viola
Ivano Viola
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hmcnasty
hmcnasty

ASKER

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.

wes
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.
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.
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.

Thanks