Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $infile = 'C:PathsPathList.txt'
- $outdir = 'C:Export'
- foreach ($dir in (Get-Content $infile))
- {
- $outfile = Join-Path $outdir($dir -split '\')[-1]
- $outfilecsv=$outfile+'.csv'
- Get-ChildItem -Path $dir -Filter *.* -Recurse | Select-Object FullName,CreationTime,@
- {Name="Size";Expression={$_.Length}
- } | Export-Csv -Path $outfilecsv -Encoding ascii -NoTypeInformation}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement