title: Batch: The goto statement isn't working properly
body: <p>I have three different labels, but it doesn't matter with one I choose: It will always got to the first label (= cmd is also opening if i am writing "google")! What's the error and why is it happening?</p>
  
  <pre><code>@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
  </code></pre>