1.

Solve : append date to the file's name?

Answer»

Is it possible with a MS DOS command to append date to the file's name
Like this:
copy C:\dir1\filename.TXT C:\dir2\filenameCurrentDate.txt or
copy C:\dir1\filename.txt C:\dir2\filename.CurrentDate

THANK you.

Code: [Select]COPY "C:\File1.txt" "C:\Directory\File2%date%.txt"Thank you - does not work this way. Copies the file when I SPECIFY %now% but does not append anything to the name. With %date% or %050306% does not copy. I need the name APPENDED with the Current date. The copy is in the scheduled batch file. Thank you again. Maybe I did not understand SOMETHING in your reply?



Discussion

No Comment Found