Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Help To Export Results To CSV

$
0
0

Afternoon all, 

             Can anyone help me, I am trying to output the below data into a CSV.

dir -recurse c:\temp | Where-Object { $_.PSIsContainer } |
  Where-Object { $_.GetFiles().Count -eq 0 } |
  Where-Object { $_.GetDirectories().Count -eq 0 } |
  ForEach-Object { $_.FullName }

Any help will be greatly appreciated :0)


Viewing all articles
Browse latest Browse all 15370

Trending Articles