title: Batch: Odd problems using Spaces in Set /p input
body: <p>I have encountered a problem when entering spaces into a <strong>Set /p</strong> command in Batch. Here is a piece of code I have that will run your input as a command (basically CMD). </p>
  
  <pre><code>@echo off
  :Set
  set /p op="C:\Users\Bob\
  if %op%==%op% goto Run
  :Run
  %op%
  goto Set
  </code></pre>
  
  <p>Again this is a basic piece of my code, but when for example I enter</p>
  
  <pre><code>Net user
  </code></pre>
  
  <p>It will escape and close the window. what is the problem with the Set /P Command? TIA</p>