@COLOR 2e
@mode con cols=50 lines=30
:input
@echo Sinowis Server PowerControl
@echo =================================================
@echo 1.关机
@echo 2.重启
@echo 3.退出
@echo ==================================================
@echo 入:
@set /p str=
@if %str%==1 (shutdown -s -t 1)
@if %str%==2 (shutdown -r -t 1)
@if %str%==3 (exit)
@echo 入...
@pause
@cls
@goto input
@mode con cols=50 lines=30
:input
@echo Sinowis Server PowerControl
@echo =================================================
@echo 1.关机
@echo 2.重启
@echo 3.退出
@echo ==================================================
@echo 入:
@set /p str=
@if %str%==1 (shutdown -s -t 1)
@if %str%==2 (shutdown -r -t 1)
@if %str%==3 (exit)
@echo 入...
@pause
@cls
@goto input