folder with many csv files... want to combine

can someone tell me how to combine a folder with about 100 csv files
powershell would be great...
id like the script to not care what the name of the files is
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yo_beeDirector of Information TechnologyCommented:
Do you want to read each file into a single csv file?
Do all the csv files have the same columns?
jamesmetcalf74Author Commented:
one big csv file
yes they do have the same columns
yo_beeDirector of Information TechnologyCommented:
Here you are using three separate cmdlets to get the desired results.
Get-ChildItem  or GCI
Get-Content or GC
Select w skip the first row
 Add-Content or AC

##This will loop through the folder of choice and for each CSV 
GCI -Path G:\documents\TestFolder -Filter *.csv | %{Gc -Path $_.fullname | Select -Skip 1 | ac Test.csv}


Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jamesmetcalf74Author Commented:
could you write the cmd for me

the files are going to be    
in c:\files
yo_beeDirector of Information TechnologyCommented:
all you need to do is replace G:\Documents\TestFolder with c:\files.  
Where do you want the output to go?

GCI -Path c:\files -Filter *.csv | %{Gc -Path $_.fullname | Select -Skip 1 | ac Test.csv}

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.