====== Windows: powershell directory listing in csv ====== \\ # Set-ExecutionPolicy -ExecutionPolicy Unrestricted $ouputfile = "c:\users\gmarco\Desktop\films.txt" $path1="\\10.4.5.1\Public\files1" $path2="\\10.4.5.2\Public\files2" $path3="\\10.4.5.3\Public\files3" $path4="\\10.4.5.4\Public\files4" get-childitem -Path $path1 -Recurse -File | Select DirectoryName,Name,Length | Export-Csv -Path $ouputfile -NoTypeInformation -Force -Delimiter ";" get-childitem -Path $path2 -Recurse -File | Select DirectoryName,Name,Length | Export-Csv -Path $ouputfile -NoTypeInformation -Force -Append -Delimiter ";" get-childitem -Path $path3 -Recurse -File | Select DirectoryName,Name,Length | Export-Csv -Path $ouputfile -NoTypeInformation -Force -Append -Delimiter ";" get-childitem -Path $path4 -Recurse -File | Select DirectoryName,Name,Length | Export-Csv -Path $ouputfile -NoTypeInformation -Force -Append -Delimiter ";" Set-ExecutionPolicy -ExecutionPolicy Restricted ---\\ return to gimbo wiki [[:start|home page]]~~NOCACHE~~