中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-02 19:18
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 定时在某个时间运行某个程序批处理怎么实现 查看 2,090 回复 4
楼 主 定时在某个时间运行某个程序批处理怎么实现 发表于 2006-12-21 09:32 ·  中国 江苏 苏州 电信
新手上路
积分 12
发帖 4
注册 2006-11-21 01:37
19年会员
UID 71178
性别 男
来自 江苏苏州
状态 离线
我想建立一个批处理文件,自动在每个星期三,运行某个程序(比如:a.exe),其他时间则无动作。

[ Last edited by namejm on 2006-12-22 at 10:26 PM ]
2 Does it meet you? 发表于 2006-12-21 09:41 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
积分 1,187
发帖 555
注册 2006-12-21 07:35
19年会员
UID 74129
性别 男
状态 离线
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 Re:Does it meet you? 发表于 2006-12-21 11:37 ·  中国 江苏 苏州 电信
新手上路
积分 12
发帖 4
注册 2006-11-21 01:37
19年会员
UID 71178
性别 男
来自 江苏苏州
状态 离线
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 发表于 2006-12-21 11:40 ·  中国 河北 保定 联通
初级用户
积分 21
发帖 28
注册 2006-12-15 10:55
19年会员
UID 73612
性别 女
状态 离线
en 呵呵 学到东西了 和额
5 不要的 发表于 2006-12-23 11:25 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
积分 1,187
发帖 555
注册 2006-12-21 07:35
19年会员
UID 74129
性别 男
状态 离线
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.
论坛跳转: