On Fri, 8 Apr 2005 12:59:03 -0700, "Galop"
<(E-Mail Removed)> wrote in
microsoft.public.win2000.cmdprompt.admin:
>Hello,
>Can some one help on how to copy files from a source to destination that
>have date stamp of previous day. Example: Copy C:\temp\*.dat J:\Arhive\*.dat
>(option is to copy only files that are created yesterday. On 1st May it
>should copy files dated 30th April. On 1st Jan, it should copy files created
>31st December and so on...
FORFILES.EXE from the Resource Kit (untested):
FORFILES -d-1 -mC:\temp\*.dat -c"CMD COPY $FILE J:\Arhive\"
or using 4DOS/4NT's Date Ranges:
COPY /[d-1,+0] C:\temp\*.dat J:\Arhive\
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"