调用网页的简单任务计划 [英] Simple-as-possible task schedule to call web page

查看:145
本文介绍了调用网页的简单任务计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,可以进行一些数据库更新(例如 http://www.mysite。 COM / updates.asp )。我希望每天09:00自动调用此页面。

I have a web page on a which does some database updates (e.g. http://www.mysite.com/updates.asp). I want this page to be called automatically each day at 09:00.

我知道如何在IIS中安排任务,但调度任务的过程需要我选择一个程序来操作任务。所以我想也许我需要制作一个调用网页的.exe文件,然后安排.exe每天运行。

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.

这是对的吗?如果是这样,我如何创建一个简单的.exe来执行此操作?我的技能只是前端网页(html / css)和经典ASP,所以我以前从未做过像创建.exe这样的事情,但我确信它不会太难,因为它只做一些非常简单的事情,即加载一个网页。

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 i.e. loading a web page.

我看过网上,我能找到的唯一例子是完整的asp.net示例,其中包含日程安排等,但我正在寻找更简单的事情。我只需要每天调用一次网页。

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.

或者,我可以通过不同的方式让调度程序在没有.exe的情况下调用该页面吗?

Alternatively, is there a different way I can get the scheduler to call the page without a .exe?

非常感谢任何指针...

Many thanks for any pointers...

推荐答案

发送HTTP get请求的exe很容易创建但是有您可以使用的地方,例如来自 http://gnuwin32.sourceforge.net/的wget.exe packages / wget.htm

An exe to send an HTTP get request would be simple to create but there are lots around that you can use, for example wget.exe from http://gnuwin32.sourceforge.net/packages/wget.htm

这篇关于调用网页的简单任务计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆