Append the date and time to a file

DOS or CMD copy or move with DATE


OR

set cdate=%date:~4,2%-%date:~7,2%-%date:~10,4%

copy file.txt %cdate%_file.txt


From http://www.windowsitpro.com/Article/ArticleID/13575/13575.html

@Echo OFF
TITLE DateName
REM DateName.CMD
REM takes a filename as %1 and renames as YYMMDDHHMM
_%1
REM
REM -------------------------------------------------------------
IF %1.==. GoTo USAGE
Set CURRDATE=%TEMP%CURRDATE.TMP 

DATE /T > %CURRDATE% 

Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET YYYYMMDD=%%l%%k%%j

Echo RENAME %1 %YYYYMMDD%_%1
RENAME %1 %YYYYMMDD%_%1
GoTo END

:USAGE
Echo Usage: DateName filename
Echo Renames filename to filename_YYYYMMDD
GoTo END

:END
REM
TITLE Command Prompt