I don't believe you can do it with COPY, but XCOPY works fine. use XCOPY source destination /D:m-d-y
That will copy any files with a date of m-d-y or later. If you want to copy only the files for a specific date in the past, I think you're going to have to get into a way of setting the attribute flags and then copying based off of that. A good way to do that from straight DOS commands doesn't come to mind. Maybe someone else can jump in. -Bill Naber -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bridges, Samantha Sent: Monday, June 23, 2003 11:48 AM To: Mailing List Declude (E-mail); IMail Forum - Ipswitch (E-mail) Subject: [Declude.Virus] DOS Command Anyone know a/the DOS command for moving or copying files from a directory based on date. For example: want to move/copy all files with a date of 6/20/2003 to a new directory. s. --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)] --- This E-mail came from the Declude.Virus mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.Virus". The archives can be found at http://www.mail-archive.com. --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)] --- This E-mail came from the Declude.Virus mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.Virus". The archives can be found at http://www.mail-archive.com.
