批处理命令goto的使用
@echo off
set /p input=请输入字母A或B:
if "%input%"=="A" goto A
if "%input%"=="B" goto B
pause
exit
:A
echo 您输入的字母是A
pause
exit
:B
echo 您输入的字母是B
pause
exit
if not exist "C:\Program Files\Everything" goto start
if exist "C:\Program Files\Everything" goto exit
:start
md C:\"Program Files"\Everything
exit
:exit
exit