Batch file insert date into filename.

DnetMHZ

Diamond Member
Apr 10, 2001
9,826
1
81
I'm looking for an automated way to take a file that is created every day with the same file name and rename it with the date for example.

original file = backup.dat

todays file would be renamed to backup-12-21-04.dat .

Is this possible in a batch file?