title: get relative path with just file name and name of the parent folder
body: <p>I am trying to get a file path put together for writing to a CSV, I need to build the directory and have it display just a single column with parent folder and file name.</p>
  
  <p>If I try it like this, I just get a display back of the file names and extension.</p>
  
  <pre><code>Get-ChildItem -Filter *.txt -Recurse | Select-Object @{l='WAV File';e={Split-Path -noQualifier ($_.Name) }}
  </code></pre>
  
  <p>WAV File<br>
  --------<br>
  test1.txt<br>
  test10.txt<br>
  test2.txt<br>
  test3.txt<br>
  test4.txt<br>
  test5.txt<br>
  test6.txt<br>
  test7.txt<br>
  test8.txt<br>
  test9.txt  </p>
  
  <p>If I swap the <code>$_.Name</code> to <code>$_.FullName</code> I then get all the parent directories.</p>
  
  <pre><code>Get-ChildItem -Filter *.txt -Recurse | Select-Object @{l='WAV File';e={Split-Path -noQualifier ($_.FullName) }}
  </code></pre>
  
  <p>WAV File<br>
  --------<br>
  \tapes\12345\wav\test1.txt<br>
  \tapes\12345\wav\test10.txt<br>
  \tapes\12345\wav\test2.txt<br>
  \tapes\12345\wav\test3.txt<br>
  \tapes\12345\wav\test4.txt<br>
  \tapes\12345\wav\test5.txt<br>
  \tapes\12345\wav\test6.txt<br>
  \tapes\12345\wav\test7.txt<br>
  \tapes\12345\wav\test8.txt<br>
  \tapes\12345\wav\test9.txt  </p>
  
  <p>But the way I actually need it to display is <code>wav\test1.txt</code> so just a single parent directory. Can anyone advise where I am going wrong trying to get this to work.</p>