psparky
King
- Joined
- Feb 24, 2011
- Messages
- 624
I'm hoping someone can help me with a Windows problem.
I would like to analyze the log files for a full game, which typically takes me several weeks to play. However, each time Civ is restarted the logs get overwritten and, as I have to shut down my PC at the end of each day (not to mention the odd restart due to a crash), the data I would like isn't available.
What I'm envisaging is some sort of script (that I can invoke by double-clicking on a desktop icon) that would copy each individual log file to another folder (let's say a folder called gamelogs), appending it to any existing file of the same name in the destination folder. By using this script at the end of each session, it would gradually build a set of files containing the log data for the whole game.
I did a search and found some interesting snippets, but I don't really know the best way to even approach the problem, so I'm hoping someone can help me out.
I'm using Windows 10 Home Edition if that makes a difference. The files in question are all plain text, there can be hundreds of files, and the names can be different from game to game as, for example, some files are one per civ and include the civ name in the file name.
I would like to analyze the log files for a full game, which typically takes me several weeks to play. However, each time Civ is restarted the logs get overwritten and, as I have to shut down my PC at the end of each day (not to mention the odd restart due to a crash), the data I would like isn't available.
What I'm envisaging is some sort of script (that I can invoke by double-clicking on a desktop icon) that would copy each individual log file to another folder (let's say a folder called gamelogs), appending it to any existing file of the same name in the destination folder. By using this script at the end of each session, it would gradually build a set of files containing the log data for the whole game.
I did a search and found some interesting snippets, but I don't really know the best way to even approach the problem, so I'm hoping someone can help me out.

I'm using Windows 10 Home Edition if that makes a difference. The files in question are all plain text, there can be hundreds of files, and the names can be different from game to game as, for example, some files are one per civ and include the civ name in the file name.