
求一个批处理*.bat文件,使系统时间增加15秒
就是一个*.bat文件,运行后可以使系统时间(假设8时5分13秒)变为8时5分28秒入8时59分46秒则也能正常识别变为9时0分1秒...
就是一个*.bat文件,运行后可以使系统时间(假设8时5分13秒)变为8时5分28秒
入8时59分46秒则也能正常识别变为9时0分1秒 展开
入8时59分46秒则也能正常识别变为9时0分1秒 展开
1个回答
展开全部
@echo off
set /a a=0
set /a a=%time:~0,1%
set /a b=%time:~1,1%
set /a c=%time:~3,1%
set /a d=%time:~4,1%
set /a e=%time:~6,1%
set /a f=%time:~7,1%
set /a e=%e%+1
set /a f=%f%+5
if %f% geq 10 set /a f=%f%-10 && set /a e=%e%+1
if %e% geq 6 set /a e=%e%-6 && set /a d=%d%+1
if %d%==10 set /a d=0 && set /a c=%c%+1
if %c%==6 set /a c=0 && set /a b=%b%+1
if %b%==10 set /a b=0 && set /a a=%c%+1
if %a%==2 if %b%==4 set /a a=0 && set /a b=0
time %a%%b%:%c%%d%:%e%%f%
pause
set /a a=0
set /a a=%time:~0,1%
set /a b=%time:~1,1%
set /a c=%time:~3,1%
set /a d=%time:~4,1%
set /a e=%time:~6,1%
set /a f=%time:~7,1%
set /a e=%e%+1
set /a f=%f%+5
if %f% geq 10 set /a f=%f%-10 && set /a e=%e%+1
if %e% geq 6 set /a e=%e%-6 && set /a d=%d%+1
if %d%==10 set /a d=0 && set /a c=%c%+1
if %c%==6 set /a c=0 && set /a b=%b%+1
if %b%==10 set /a b=0 && set /a a=%c%+1
if %a%==2 if %b%==4 set /a a=0 && set /a b=0
time %a%%b%:%c%%d%:%e%%f%
pause
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询