How do you rename a file to include the datetime using the windows command line?
Check out StampMe.cmd at http://www.ss64.com/nt/syntax.html.
Here is a similar question:
http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us
Hope this helps.