我有三个不同的标签,但它与我选择的标签无关:它总是会到第一个标签(= cmd也打开,如果我正在写入“google “)!什么是错误,为什么会发生?批处理:goto语句无法正常工作
@echo off
:start
set /p input = What do you want to open?
if "%input%" == "cmd" goto cmd
if "%input%" == "notepad" goto notepad
if "%input%" == "google" goto google
:cmd
start
goto start
:notepad
start notepad
goto start
:google
start https://www.google.at/
goto start
非常感谢! –