Discussion Locked

xcopy question

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We are trying to copy a daily file and would like to enter a date into a bat file in order to only copy that one file. Any help is appreciated.

2 replies

by rewrite

You can use the /d:date option of xcopy to copy files with a certain date. If no date is given in the date parameter then it will copy files with a source time that is newer than the destination time.

Ex: xcopy a.file /d:11/30/04 c:\temp\a.file

This discussion is closed to new replies.