我有三個不同的標籤,但它與我選擇的標籤無關:它總是會到第一個標籤(= 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
非常感謝! –