您的位置:首页 > 其它

bat文件制作

2012-09-26 08:56 127 查看
@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 
仿照写吧
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: