标题: AT命令定时运行某批处理时, FOR命令提示找不到文件?
[打印本页]
作者: luobotou
时间: 2007-5-17 17:08
标题: AT命令定时运行某批处理时, FOR命令提示找不到文件?
批处理内容如下:
net use x: \\domain\share "123456" /u:"one"
set/a hh=%time:~0,2%+0
set/a mm=1%time:~3,2%-100+5
if %mm% geq 60 (set/a mm=!mm!-60
set/a hh=!hh!+1
if %hh% geq 24 set/a hh=!hh!-24
)
at !hh!:!mm! "%0"
for /f %%a in (x:\list.txt) do taskkill /im %%a /f /t
net use x: /del
为了不让局域网内电脑运行 P2P 之类或在线收看类的东西(很托网速).所以我想每过五分钟清理一下这些程序.
直接点击运行此批处理就可以.定时5分钟之后再运行.就提示找不到 list.txt 了.
第一次发贴.上面那些代码都是在论坛里找的.感觉在这里学到不少东西..还在学习中.....
不知道上面这个批.问题出在那里. 请大家帮忙.....