Batch file to copy files with date stamp ?

Hello Gurus,
I need a batch file to copy files according to their creation date.
I am backing up files and I need to copy only the newest files to a DVD instead of all backups .
thanks
ammounpierreAsked:
Who is Participating?
 
DaMaestroCommented:
0
 
Steve KnightIT ConsultancyCommented:
As can xcopy

xcopy /d:(date) C:\source\*.bkf d:\

 /D:m-d-y     Copies files changed on or after the specified date.
              If no date is given, copies only those files whose
              source time is newer than the destination time.

You could also use the archive bit to identify files that hadn't already been backed up and use that to do it, have a look at the /a and /m switches for xcopy.

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.