title: Create folder directory from path?
body: <p>I currently have a large list of folder paths that I want to use Powershell to create programatically. However my knowledge of Powershell, while growing, is still small.</p>
  
  <p>E.G. - The given path is:</p>
  
  <pre><code>C:\Folder1\Folder2\Folder3\Folder4
  </code></pre>
  
  <p>I want to physically create this folder path using Powershell. Not all of the file paths have the same amount of levels.</p>
  
  <p>I get the basic concepts of reading the contents of the text file and making a directory:</p>
  
  <pre><code>get-content c:\folderPaths.txt | Foreach-Object{
       MD newFolder
  }
  </code></pre>
  
  <p>However I am not sure how I can parse the Folder path to get each level of the new directory.</p>