Windows log file rotation
Yet another de facto Linux command that is oddly missing in Windows.
Some simple log files from a custom app were getting out of control. Google revealed that while basic rotation is possible for the standard Windows event logs, there’s no command in particular for log rotation, aside from some odd looking bat scripts that required typing output to temp directories and the like.
rotatelogs.exe from the Windows distribution of Apache 2.2, but that didn’t seem to work at all.
Today, however, I stumbled across CHOMP. Works a peach, and surprisingly quick. Recommended.