title: How to get parent path of %CD%
body: <p>How do I get the parent path of the current %CD%.</p>
  
  <p>For instance:</p>
  
  <pre><code>ECHO %CD%
  </code></pre>
  
  <p>result: <code>C:\Windows\System32</code></p>
  
  <p>(This does not work)</p>
  
  <pre><code>ECHO %CD%..\
  </code></pre>
  
  <p><strong>desired result:</strong> <code>C:\Windows</code></p>