少空格..?
还有exit是系统内部命令,不能做标签的把
- @echo off
- echo.
- echo.
- echo 选择你要的命令
- echo 1,-------------------服 务--------------------
- echo 2,-------------------组策略--------------------
- set /p num=选择:
- if "%num%"=="1" (
- start services.msc
- exit
- )
- if "%num%"=="2" (
- start gpedit.msc
- exit
- )
复制代码
|