in a batch file, you can simply use the command below.

ren log.txt log-%date:~4,2%-%date:~7,2%-%date:~10,4%_@_%time:~1,1%h%time:~3,2%m%time:~6,2%s%.txt

This will give you the perfect output of "log-03-30-2016_@_8h49m47s.txt"

Sweet huh

«