批处理选择操作模版

2014-05-23   作者:   来源:   浏览:5   评论:0  

======

@ECHO OFF &PUSHD %~DP0 &TITLE REGEDIT4 &color 9f &mode con cols=36 lines=10
::自定义变量
set CustomNames1=  [1]添加
set CustomNames2=  [2]删除
set CustomNames3=  [3]无
set CustomNames4=  [0]关闭
if exist "%windir%\System32\choice.exe" goto a &cls
:c
cls &echo. &echo  %CustomNames1% &echo  %CustomNames2% &echo  %CustomNames3% &echo  %CustomNames4% &echo.
set /p d=请输入:
if %d%==1 goto 1
if %d%==2 goto 2
if %d%==3 goto 3
if %d%==0 exit
cls&goto c
:a
cls &echo. &echo  %CustomNames1% &echo  %CustomNames2% &echo  %CustomNames3% &echo  %CustomNames4% &echo.
choice /c 1230 /m 请选择
if errorlevel 1 if not errorlevel 2 goto 1
if errorlevel 2 if not errorlevel 3 goto 2
if errorlevel 3 if not errorlevel 4 goto 3
if errorlevel 0 exit
cls&goto a
:1
cls &echo. &title %CustomNames1% &echo %CustomNames1%
::输入内容1

exit
:2
cls &echo. &title %CustomNames2% &echo %CustomNames2%
::输入内容2

exit
:3
cls &echo. &title %CustomNames3% &echo %CustomNames3%
::输入内容3

exit

======

Tags:bat_cmd_批处理 责任编辑:admin
顶一下(15)
48.39%
踩一下(16)
51.61%

已有 0 人参与评论  网友评论

请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!
    登录   注册

栏目导航

本类排行

相关文章