标题: 请大家帮我看下这段
[打印本页]
作者: 5548646
时间: 2007-8-30 18:39
标题: 请大家帮我看下这段
for /f "tokens=1 delims=:" %%i in ("%time%") do set /a d=%%i
set /a a=%time:~3,2%
if "%a:~0,1%%"=="0" set a=%a:~1%
if %a% == 57 goto one
if %a% == 58 goto two
if %a% == 59 goto three
set /a a=%a%+3
:start
at %d%:%a% /interactive c:\1.vbs
goto new
:one
set /a a=00 && goto end
:two
set /a a=01 && goto end
:three
set /a a=02 && goto end
:end
set /a d=%d%+1
goto start
这是一个 每阁3分钟便启动下1.vbs的BAT 但我运行的时候 他总是说
C:\>set /a a=26
命令语法不正确。
我在线等
作者: wudixin96
时间: 2007-8-30 18:42
set /a是用于计算的
直接赋值的话,set 就可以了。
作者: 5548646
时间: 2007-8-30 18:56
还是不对的
作者: HAT
时间: 2007-8-30 21:19
//set /a a=%time:~3,2%
set a=%time:~3,2%