title: Converting batch script with GOTO to single line
body: <p>I know that "&amp;" and "&amp;&amp;" will have to be used here. But what about GOTO? How to make it work with labels or without? I want it to look like for example: echo %time% &amp; dir &amp; echo %time%.</p>
  
  <pre><code>@echo off
  :start
  cls
  echo -create (create password)
  echo -check (check password)
  echo.
  set /p PROGRAM= What do you want to do?: 
  goto %PROGRAM%
  
  :create
  cls
  set /p PASSWORD= What do you want your password to be?: 
  echo %PASSWORD% &gt; test.txt
  pause
  goto start
  
  :check
  cls
  set /p PASSWORD1= What is your password?
  
  for /f "Delims=" %%a in (test.txt) do (
  set TEXT=%%a
  )
  
  if %PASSWORD1%==%TEXT% goto correct
  echo you are wrong!!!
  pause
  goto start
  
  :correct
  echo you are right!!!
  pause
  goto start
  </code></pre>