• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

Combine log files into one file?

I am using robocopy to back up my servers and then emailing the backup logs using bmail software. I am trying to combine all logs from different servers running at different time into one log file at the end and bmail it to me instead of getting 8 different log files everyday!.
I can direct all logs to go into one network folder. Is there a free software that will merge all those logs into one file? I tried the /LOG+:file parameter from robocopy but it didn't work, it was emailing me some funny characters, i don't think it logs well when accessing from the network.

any suggestions?
1 Solution
copy file1+file2+file3+file4+file5+file6+file7+file8 newfile.log


for /f "tokens=*" %A in ('dir /b *.log') do type "%A">>newlog.log

(this assumes that the log files are all named something.LOG)
smaguireAuthor Commented:
Great. Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now