Really great script Ruatha. Thank you.
And to make it complete: how can we add "backup every x turns" feature into this? Sometimes it's really usefull.
And the Last one - is where any way to grab turn date from .gam file to insert it to the backup name?
Originally posted by Imperator Fyron: Doesn't MB's program do that anyways?
Unfortunately, not. SE4B will add local timestamp to the end(beginning?) of the backup file name. I know that's good enough, but the se4 year would be better
Edit: Never mind, I'll better try zsh than this poor cmd.exe.
[ April 11, 2004, 22:04: Message edited by: aiken ]
Well, the turn date is encrypted in the savegame files, so the only way to do it is to have a counter going in the program/batch code and hope it matches up.
Originally posted by Imperator Fyron: Well, the turn date is encrypted in the savegame files, so the only way to do it is to have a counter going in the program/batch code and hope it matches up.
That's the typical header of .gam file:
№г —–и ёxp8 1.91 24105 19Simultaneous Different Machines
So regexp 24\d\d\d will always catch turn date, but I doubt where's a way to paste it into the file name with help of native windoze utils.