I have tried many ways of doing this in a batch file, although when outputting to a filename, I get “/” in them, so it can’t output it to a text file, I realize they differ, so one which works in XP and Vista / 7 would be handy
E.g. Set FileDate=%date:/=%
Try this:
I had written it a while ago.