title: Including a space in set /p inputs automatically crash the batch program
body: <p>I am very much a newb at batch programming, but I can't seem to find an answer that fixes my problem. Any time I include a <code>set /p</code> command into my batch file, inputting anything that includes a space between letters instantly closes the program. 
  Here's the code in question:</p>
  
  <pre><code>set /p action="&gt;&gt;"
  if not defined action goto nothing
  if /i %action% equ fight goto fight
  if /i %action% equ magic goto magic
  if /i %action% equ heal goto heal
  if /i %action% equ "do nothing" goto nothing
  goto battscr
  </code></pre>
  
  <p>I'm obviously trying to create a response to the input, "do nothing", but every time a user types a space between characters, immediately after pressing enter it will close. Running the batch through cmd gives the error "nothing was unexpected at this time." with "nothing" referring to the input after the space.</p>