Windows – Looking for something to execute a webpage every day using windows server!

scheduled-taskwindowswindows-server-2008

I have windows server 2008 and ASP.NET application running on it. There is a page that renews all subscribers and should be run every 1 hour or so. I want to have this done automatically every hour.

Problem is if i assign Windows Schedule Task to it and make page with code a homepage it will open 24 browser windows per day. I can write a page that auto closes after execution with Javascript on it ( window.close() ) but is there any other more elegant way to execute the page on Windows Server 2008 ?

Best Answer

You have several solutions.

  1. Use Wget to load a page without opening a browser.

  2. If you are a developer, create your own Windows service which will load the page on background every hour. I'm not sure it is better than using Wget with Task Scheduler.

  3. If there is no reason the have a web page doing subscribers renewal, do a web service or a WCF service instead, then call it once per hour either through a Windows service or a simple application called through Task Scheduler.

Related Topic