title: DOS error: "was unexpected at this time."?
body: <p>My Windows 7 system path looks something like this:</p>
  
  <pre><code>Path=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;....
  </code></pre>
  
  <p>I am trying to set a new user variable based on whether its defined or not already:</p>
  
  <pre><code>IF NOT DEFINED DEFAULTP (
    echo Setting DEFAULTP to backup the system PATH
    SETX DEFAULTP=%PATH%
  )
  </code></pre>
  
  <p>When I try to do this, I get an error that looks like this:</p>
  
  <pre><code>\NVIDIA was unexpected at this time.
  </code></pre>
  
  <p>Can anyone guess why?</p>