Michael
Thu Dec 01 19:59:23 CST 2005
On 1 Dec 2005 13:35:29 -0800, "gmedia" wrote in
microsoft.public.scripting.vbscript:
>I was able to write a FTP script to download logfiles from a server and
>it works well. The problem is it grabs all the files.
>
>I only want to retrieve the logfile that is 1 day old. Everyday.
>Basically grabbing the file from the night before.
>
>I wish there was a "get yesterdays dated file" variable
There is - in a proper CLI. In 4NT (a commercial product):
COPY /[d-1] "ftp://server/dir/file.ext"
will copy files modified yesterday or today. 4NT's Date Ranges are
documented at <
http://jpsoft.com/help/dateranges.htm>; 4NT's transparent
FTP support is described at <
http://jpsoft.com/help/ftpservers.htm>.
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"