Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $infile = 'C:PathsPathList.txt'
  2.  
  3. $outdir = 'C:Export'
  4.  
  5. foreach ($dir in (Get-Content $infile))
  6.  
  7. {
  8.  
  9. $outfile = Join-Path $outdir($dir -split '\')[-1]
  10.  
  11. $outfilecsv=$outfile+'.csv'
  12.  
  13. Get-ChildItem -Path $dir -Filter *.* -Recurse | Select-Object FullName,CreationTime,@
  14.  
  15. {Name="Size";Expression={$_.Length}
  16.  
  17. } | Export-Csv -Path $outfilecsv -Encoding ascii -NoTypeInformation}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement