Link to home
Start Free TrialLog in
Avatar of Roberto Madro R.
Roberto Madro R.Flag for United States of America

asked on

Reading multiple files and adding file name to the records inside.

I need a powershell script to read multiple files in a directory, append each record it reads inside each of the files with the file name, and write all those records to a central file.

I can script the "reading" part but getting stuck on the other two.

Your thoughts please.

Thx
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

do you want to add the filename to the content of the same file?
Avatar of Roberto Madro R.

ASKER

Yes .
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America 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
Right on the money, many thanks