Link to home
Start Free TrialLog in
Avatar of Jim Metcalf
Jim MetcalfFlag for United States of America

asked on

Powershell to combine files

I have a repository of a ton of text files.  unfortunately these files and have been processed and the actual file extension is a mix between dates and other random information. (the files no longer have a .txt at the end of their name
They have the exact same format.  Is there a powershell script that will merge all files in a folder regardless of what the extension is?

if anyone cares to know the location of the files to help with writing the script.
It is c:\_admin\reads

also, in the past when i have used powershell to merge files.  the 1st row or record and last row or record was often disregarded.  I need these rows.
Avatar of ITguy565
ITguy565
Flag of United States of America image

Is there anything else in that folder that doesn't need to be moved to c:\_admin\reads ??
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jim Metcalf

ASKER

that thing worked like a charm
thanks dude