iis
I have a web page on a which does some database updates (eg http://www.mysite.com/updates.asp). I want this page to be called automatically each day at 09:00.
I know how to schedule a task in IIS, but the process of scheduling a task requires that I select a programme to operate the task. So I'm thinking perhaps I need to make a .exe file which calls the web page, then schedule that .exe to run daily.
Is this right? If so, how do I create a simple .exe to do this? My skills are solely front end web (html/css) and classic ASP, so I've never done anything like creating a .exe before, but I'm sure it can't be too difficult as it's only doing something very simple ie loading a web page.
I've looked online and the only examples I can find are full asp.net examples which contain logging of schedules etc, but I'm looking for something much simpler. I just need to get the web page called once daily.
Alternatively, is there a different way I can get the scheduler to call the page without a .exe?
Many thanks for any pointers...
发送HTTP获取请求的exe文件很容易创建,但是可以使用的文件很多,例如http://gnuwin32.sourceforge.net/packages/wget.htm中的wget.exe。
要仅使用Windows任务计划程序和一行PowerShell完成此操作,请参阅此答案
I'm looking for an even better way to do this than I'm using right now. Currently I'm using a simple .vbs script to achieve this.
url="http://www.mysite.com/updates.asp"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE)
objHTTP.Send
In your scheduled task, call the "wscript.exe" program, and specify the full absolute path to the .vbs file as the argument.
链接地址: http://www.djcxy.com/p/38920.html上一篇: 将外部数据导入Web应用程序
下一篇: IIS