@echo off&setlocal enabledelayedexpansion
title=快速关机
color f9
echo.
set /p select=请选择[重启=r;关机=s;注销=l]:
set t=0
echo.
set /p t=请设置关机或重启等待时间,回车立即关机或重启.[单位:分钟]:
set /a ti=!t!*60
if "!select!"=="r" %windir%\system32\shutdown.exe -r -t !ti! -c "重启倒计时当中......" -f
if "!select!"=="s" %windir%\system32\shutdown.exe -s -t !ti! -c "关机倒计时当中......" -f
if "!select!"=="l" %windir%\system32\shutdown.exe -l -t !ti! -c "注销倒计时当中......" -f
仿照写吧
title=快速关机
color f9
echo.
set /p select=请选择[重启=r;关机=s;注销=l]:
set t=0
echo.
set /p t=请设置关机或重启等待时间,回车立即关机或重启.[单位:分钟]:
set /a ti=!t!*60
if "!select!"=="r" %windir%\system32\shutdown.exe -r -t !ti! -c "重启倒计时当中......" -f
if "!select!"=="s" %windir%\system32\shutdown.exe -s -t !ti! -c "关机倒计时当中......" -f
if "!select!"=="l" %windir%\system32\shutdown.exe -l -t !ti! -c "注销倒计时当中......" -f
仿照写吧