Jun 25, 2012
tom

HTTP-Invoke URL by Windows Task Scheduler (schtasks.exe)

Question

I’d like to send HTTP requests using the Windows Task Scheduler. In UNIX cron jobs, I can do that using

wget http://www.google.com -O /dev/null

How to do the same on a Windows Server?

Asked by cheeesus

Answer

You can download a windows version of wget. Create a batch file, if you need more processing:

@echo off
wget http://www.google.com -O nul
rem do something else, if needed

In your Task, simply call this batch file.

Answered by jftuga

Related posts:

  1. Open Web Page in Windows 2008 R2 Task Scheduler runs forever
  2. How to schedule a task for multiple days of a month using schtasks.exe?
  3. Windows 2008 Task Scheduler doesn’t show cmd window when task executes
  4. How to trigger a task at any change on a folder with Windows Server Task Scheduler?
  5. How do I kick off iexplore.exe to open a url from a windows 2003 scheduled task? It only seems to open the required url when I am logged in as the user it runs under

Leave a comment