Hacker News new | ask | show | jobs
by m4ck_ 72 days ago
You could just one line it too:

  Get-Item "C:\some path\having spaces.txt" | select DirectoryName, Name, Basename