中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 22:50
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How to implement batch processing to run a certain program at a certain time regularly
Printable Version  2,094 / 4
Floor1 zheng514 Posted 2006-12-21 09:32
新手上路 Posts 4 Credits 12 From 江苏苏州
I want to create a batch file that automatically runs a certain program (for example: a.exe) every Wednesday, and does nothing on other days.

[ Last edited by namejm on 2006-12-22 at 10:26 PM ]
Floor2 scriptor Posted 2006-12-21 09:41
银牌会员 Posts 555 Credits 1,187
请先明确这是一段关于创建批处理文件的内容,以下是翻译:

请将其命名为 autojob.bat
代码如下,复制它并粘贴到你的.txt文件中,然后将其重命名为上述名称!

@echo off echo

at 12:00 /every:thursday a.exe

@echo off
Floor3 zheng514 Posted 2006-12-21 11:37
新手上路 Posts 4 Credits 12 From 江苏苏州
非常感谢!你太聪明了。我已经用“AT help”查看了AT命令的用法!但我对“AT every:date[,,]”感到困惑。顺便说一下,a.exe应该加上“ ”吧?
Floor4 lisiyuan Posted 2006-12-21 11:40
初级用户 Posts 28 Credits 21
Hehe, learned something, and uh
Floor5 scriptor Posted 2006-12-23 11:25
银牌会员 Posts 555 Credits 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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023