中国DOS联盟论坛

中国DOS联盟

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

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

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 定时在某个时间运行某个程序批处理怎么实现
作者:
标题: 定时在某个时间运行某个程序批处理怎么实现 上一主题 | 下一主题
zheng514
新手上路





积分 12
发帖 4
注册 2006-11-21
来自 江苏苏州
状态 离线
『楼 主』:  定时在某个时间运行某个程序批处理怎么实现

我想建立一个批处理文件,自动在每个星期三,运行某个程序(比如:a.exe),其他时间则无动作。

[ Last edited by namejm on 2006-12-22 at 10:26 PM ]

2006-12-21 09:32
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
scriptor
银牌会员




积分 1187
发帖 555
注册 2006-12-21
状态 离线
『第 2 楼』:  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

2006-12-21 09:41
查看资料  发短消息 网志   编辑帖子  回复  引用回复
zheng514
新手上路





积分 12
发帖 4
注册 2006-11-21
来自 江苏苏州
状态 离线
『第 3 楼』:  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?

2006-12-21 11:37
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
lisiyuan
初级用户





积分 21
发帖 28
注册 2006-12-15
状态 离线
『第 4 楼』:  

en 呵呵  学到东西了 和额

2006-12-21 11:40
查看资料  发短消息 网志   编辑帖子  回复  引用回复
scriptor
银牌会员




积分 1187
发帖 555
注册 2006-12-21
状态 离线
『第 5 楼』:  不要的



  Quote:
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.


2006-12-23 11:25
查看资料  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: