Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

folder and subfolder list outputed to a csv file

$
0
0

I found this powershell one liner that produces exactly what I want to the screen.

dir-recurse|Where-Object { $_.PSIsContainer } |ForEach-Object { $_.FullName }

However when I try and export it to a csv or html all I get are numbers instead of folder names.

Can someone tell me what I am missing?


Viewing all articles
Browse latest Browse all 6937

Trending Articles