创建用于调度的bach脚本或vb脚本 [英] creating bach script or vb script for scheduling

查看:85
本文介绍了创建用于调度的bach脚本或vb脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在我的服务器上,它仅支持批处理脚本或vbscript进行计划,并且我想在项目中有一个.aspx页,我希望每天在特定时间进行计划.所以我想制作一个vbscript或批处理脚本.我对此一无所知.因此,请给我一个完整的想法,如何在该服务器上安排任务.
在此先谢谢您.

解决方案

不能预定" aspx页面.它是在用户请求时执行的代码.如果要安排页面的某些功能,最简单的方法是编写一个可复制其功能的可执行文件.
请注意,这是一种不良设计的情况:如果您知道必须对代码进行调度,则应该首先将其编写为程序或服务,然后将asp调用该程序或服务. /blockquote>

Hi all,
On my server, it only supports the batch script or the vbscript for scheduling purposes & I have a .aspx page in project that I want to schedule per day at a specific time. So I want to make a vbscript or batch script. I don''t have any idea about that. So please give me a full idea how to schedule task on that server.
Thanks in advance.

解决方案

An aspx page cannot be "scheduled". It is code that executes when a user requests it. If you want to schedule some of the functionality of your page, the easiest is to write an executable that duplicates it''s functionality.
Note that this is a case of bad design: if you knew your code would have to be scheduled, you should have written it as a program or a service in the first place, and have your asp stuff call upon the program or service.


这篇关于创建用于调度的bach脚本或vb脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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