7Live
You are not logged in.
I had a need to combine multiple CSV files.
Get-ChildItem -Filter *.csv -Path C:ScriptsCSVFiles | Select-Object -ExpandProperty FullName | Import-Csv | Export-Csv C:ScriptsCSVFilesCombinedFile.csv -NoTypeInformation -Append Idea of this method is Get the filenames with full path of the CSV filesImport them all Pipe the import the CSV files to Export-CSV to a file.
Note the “-Append†parameter.
Hope this help you too.
.
Offline