-
-
Save matt40k/cd23b213515509fea2631124d2f8a0f0 to your computer and use it in GitHub Desktop.
Powershell Script to merge multiple CSV files into one (by appending each file to the end)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$folder = 'C:\Data' #INPUT FOLDER PATH - e.g C:\Data | |
$files = Get-ChildItem $folder\*.csv -Exclude $folder\MergedCsvFile.csv | |
Get-Content $files | Set-Content $folder\MergedCsvFile.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment