自己写的一个自动关机的批处理,有些错误,不知道怎么改,求大虾帮忙~
@echo off
cls
title Leoxh's TimeMgr
echo.
echo. Welcome back !! The Mgr. will make your TIME more efficient !!
echo.
:main
set /p tin=SetTime(/min) -^>
set flag=%tin:~3,1%
if /i "%flag%"==":" (
goto point
) else (
goto period)
:period
set /a b=%tin%*1
set /a t=%tin%*60
if %b% equ %tin% (
goto setime
) else (
goto main)
:point
set hh=%time:~0,2%&set mm=%time:~3,2%&set ss=%time:~6,5%
set /a t0 = %hh%*60+%mm%
set /a t1 = %tin:~0,2%*60+%tin:~3,2%
set /a tmp=%t1%-%t0%
if "%tmp%"if /i "%tin%"=="Q" GOTO periodecho.%tin%|findstr /i "^[0-9]*$">nul&&goto setimefor /f "tokens=1,2 delims=:" %%i in ("%tin%") do (e
|