title: How to normalize a path in PowerShell?
body: <p>I have two paths: </p>
  
  <pre><code>fred\frog
  </code></pre>
  
  <p>and</p>
  
  <pre><code>..\frag
  </code></pre>
  
  <p>I can join them together in PowerShell like this:</p>
  
  <pre><code>join-path 'fred\frog' '..\frag'
  </code></pre>
  
  <p>That gives me this:</p>
  
  <pre><code>fred\frog\..\frag
  </code></pre>
  
  <p>But I don't want that. I want a normalized path without the double dots, like this:</p>
  
  <pre><code>fred\frag
  </code></pre>
  
  <p>How can I get that?</p>