Board logo

标题: 定时在某个时间运行某个程序批处理怎么实现 [打印本页]

作者: zheng514     时间: 2006-12-21 09:32    标题: 定时在某个时间运行某个程序批处理怎么实现

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

[ Last edited by namejm on 2006-12-22 at 10:26 PM ]
作者: scriptor     时间: 2006-12-21 09:41    标题: 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
作者: zheng514     时间: 2006-12-21 11:37    标题: 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?
作者: lisiyuan     时间: 2006-12-21 11:40
en 呵呵  学到东西了 和额
作者: scriptor     时间: 2006-12-23 11:25    标题: 不要的



  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.