中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-02 21:36
48,038 主题排行 / 350,123 发帖 / 今日 1 篇 / 48,251 会员排行
DOS批处理 & 脚本技术(批处理室) » 定时在某个时间运行某个程序批处理怎么实现
可打印版本  2,092 / 4
第1楼 zheng514 发表于 2006-12-21 09:32
新手上路 发帖 4 积分 12 来自 江苏苏州
定时在某个时间运行某个程序批处理怎么实现
我想建立一个批处理文件,自动在每个星期三,运行某个程序(比如:a.exe),其他时间则无动作。

[ Last edited by namejm on 2006-12-22 at 10:26 PM ]
第2楼 scriptor 发表于 2006-12-21 09:41
银牌会员 发帖 555 积分 1,187
Does it meet you?
Please Named autojob.bat
Code As Follow,Clip it and paste it in you .txt file and then rename it as above!

@echo off echo

at 12:00 /every: thursday a.exe

@echo off
第3楼 zheng514 发表于 2006-12-21 11:37
新手上路 发帖 4 积分 12 来自 江苏苏州
Re:Does it meet you?
Thank you very much!You are so smart.I haved used "AT help" to review the usage of AT command!But I am confused about "AT every:date[,,]".By the way,a.exe should add " ".Right?
第4楼 lisiyuan 发表于 2006-12-21 11:40
初级用户 发帖 28 积分 21
en 呵呵 学到东西了 和额
第5楼 scriptor 发表于 2006-12-23 11:25
银牌会员 发帖 555 积分 1,187
不要的
Originally posted by zheng514 at 2006-12-20 22:37:
Thank you very much!You are so smart.I haved used "AT help" to review the usage of AT command!But I am confused about "AT every:date".By the way,a.exe should add " &quo ...


No "" is necessary, but you must type the absolute routine of an executable file , such as f:\a.exe

To sum up,

at 12:00 /every:monday,tuesday f:\a.exe

That is ok. No "" is necessary here.
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023