Aug 30, 2007 -
General, Scripting, Windows 2000, Windows 2003
No Comments
General, Scripting, Windows 2000, Windows 2003
No Comments How can I rename a file with todays date?
You can use this simple batch file to rename a file and append today’s date:
set Day=%Date:~0,2%
set Mth=%Date:~3,2%
set Yr=%Date:~6,4%
rename c:test.log test_%Day%-%Mth%-%Yr%.log