@ echo off
Mode con cols=40 lines=35
: start
Echo please enter the countdown time (unit: minutes) :
The set/p a=
The set/a b=60
Set a % * % b/a var=% %
Rem * * * * * * * * * * * * cycle began
: the continue
The echo...
Echo the countdown % % var SEC, ready to shut down
The echo...
Choice/t/1 d y/n & gt; Nul
The set/a var -=1
If % % var GTR 0 goto the continue
Rem * * * * * * * * * * * * the end of the cycle
Echo you have 30 seconds to save system program
Shutdown the. Exe - s - t 30
pause
CodePudding user response:
Mainly the, Shutdown. Exe - s - t 30 can determine?