You have a directory full of log files that you want to import into
Excel or a database so you can do some processing on them… but there are
hundreds of files… how do you make them into a single file?
Answer: Pull out your DOS hat, open a command prompt, and then use the “for” command.
for %f in (*.log) do type “%f” >> output.txt
You can also just use the DOS copy command:
copy /a *.log aggregate.txt
The /a option ensures that any ^Z’s at end-of-file in the source files will not be copied to the destination file.
Post being viewed right now
Item date: 23.08.2009
Views: 1564
Item date: 04.02.2009
Views: 947
Item date: 27.09.2009
Views: 938
Item date: 09.03.2009
Views: 501
Item date: 22.08.2009
Views: 2142
Item date: 18.06.2009
Views: 1786
Item date: 26.09.2009
Views: 427
Item date: 06.02.2009
Views: 400
Item date: 11.12.2009
Views: 3412
Item date: 23.08.2009
Views: 1929