作者:papai | 时间:2007-12-28 17:30 | 标题:(求助)关于定时执行问题
如何让批处理每隔180秒执行一次
taskkill /IM wgatray.exe ?
[ Last edited by papai on 2007-12-28 at 05:31 PM ]
作者:huahua0919 | 时间:2007-12-28 17:34
sleep 180
作者:HAT | 时间:2007-12-28 21:01
schtasks /create /ru system /sc minute /mo 3 /tn MyTask /tr C:\test.bat
作者:czzz2005 | 时间:2007-12-30 00:22
看不懂~
作者:moniuming | 时间:2008-01-17 17:30
@echo off
taskkill /IM wgatray.exe
sleep 180
%0
作者:zexuhu | 时间:2008-01-17 17:35
这个可以让你在设定的时间运行批处理
sc config Eventlog start= auto
net start "Event Log"
sc config RpcSs start= auto
net start "Remote Procedure Call (RPC)"
sc config schedule start= auto
net start "task scheduler"
echo 请输入时间(例: 11:42)
set /p t=
at %t% /interactive 批处理路径
作者:zexuhu | 时间:2008-01-17 17:40
sc config Eventlog start= auto
net start "Event Log"
sc config RpcSs start= auto
net start "Remote Procedure Call (RPC)"
sc config schedule start= auto
net start "task scheduler"
set ti=%time:~0,-9%
set me=%time:~3,-6%
set /a me=%me%+3
set tm=%ti%:%me%
at %tm% /interactive 当前批处理路径
在后面你就可加上你做的操作,,,
这样每隔三分钟运行一次你所要做的操作
[ Last edited by zexuhu on 2008-1-17 at 05:42 PM ]