@Echo Off mode con lines=35 cols=90 color 8F Title 定时关闭电脑 :begin cls echo. Echo.定时关闭你的电脑 echo. echo. 任务仅本次运行,无残留,绿色安全, echo. echo. --- Computer information provision echo. Echo.请选择需要的操作 : echo. echo. echo 1 10分钟之后关机 echo. echo 2 15分钟之后关机 echo. echo 3 30分钟之后关机 echo. echo 4 1小时之后关机 echo. echo 5 3小时之后关机 echo. echo 6 取消本次关机计划 echo. Set /P Choice= 请选择要进行的操作数字 ,然后按回车: If not '%Choice%'=='' ( If '%Choice%'=='1' shutdown -s -c '10分钟之后将进行关机操作' -t 600 If '%Choice%'=='2' shutdown -s -c '15分钟之后将进行关机操作' -t 900 If '%Choice%'=='3' shutdown -s -c '30分钟之后将进行关机操作' -t 1800 If '%Choice%'=='4' shutdown -s -c '一小时之后将进行关机操作' -t 3600 If '%Choice%'=='5' shutdown -s -c '三小时之后将进行关机操作' -t 10800 If '%Choice%'=='6' shutdown -a If '%Choice%'=='6' exit pause 定时关机.bat pause )
|
|