@echo off
:: rename file BACKUP.LOG to yymmdd.LOG (ex. 950508.LOG on May 8, 1995)
FDATE /Ff /C"~@rename backup.log ~y~M~D.log"> junk.bat
type junk.bat
call junk.bat
del junk.bat
.EXAMPLE.....: @echo off
:: rename file BACKUP.LOG to ccyymmdd.LOG (ex. 19950508.LOG on May 8, 1995)
FDATE /Ff /C"~@rename backup.log ~Y~M~D.log"> junk.bat
type junk.bat
call junk.bat
del junk.bat
.EXAMPLE.....: @echo off
:: rename directory BACKUP to yymmdd (ex. 950508 on May 8, 1995)
FDATE /Ff /C"~@rename backup ~y~M~D"> junk.bat
type junk.bat
call junk.bat
del junk.bat
.EXAMPLE.....: @echo off
:: rename directory BACKUP to ccyymmdd (ex. 19950508 on May 8, 1995)
FDATE /Ff /C"~@rename backup ~Y~M~D"> junk.bat
type junk.bat
call junk.bat
del junk.bat