title: Why is CMD prompt stating "set was unexpected at this time"
body: <p>I'm trying to make a username change option for the settings in one of my batch file programs, but it keeps displaying a message like "set was unexpected at this time" which is weird, because my code seems right. It happens after entering a value for "cuser". None of the values I'm entering for input are null, since I've pre-declared the values at the beginning of the program to make it so I didn't have any null-value errors.</p>
  
  <pre><code>:uch
  cls
  echo.
  echo Are you sure you want to change your username?
  echo.
  echo [Y/N]
  echo.
  set /p input=
  if %input% EQU n goto set
  if %input% NEQ y goto uch
  
  :ucy
  cls
  echo.
  echo Enter your current username
  echo.
  set /p cuser=
  if %cuser% NEQ %username1% (
  echo.
  echo Incorrect username. Please try again.
  echo Press any button to continue.
  echo.
  pause&gt;null
  goto :ucy
  )
  if %cuser% EQU %username1% (
  echo Please enter new username.
  echo.
  set /p nuser=
  echo Please enter again.
  echo.
  set /p nuser2=  
  if %nuser2% EQU %nuser% set username1=%nuser%
  if %nuser2% EQU %nuser% goto ga1
  if %nuser2% NEQ %nuser% (
  echo Usernames do not match. Please try again.  
  echo Press any button to continue.
  echo.
  pause&gt;null
  goto ucy
  )
  goto ucy
  </code></pre>