Retrieving files from FTP by date.

Advertisement

paul.moreland
Joined:
Posts:
5
Location:
Manchester

Retrieving files from FTP by date.

I have a script which runs at 05.45 each day, it retrieves file from an AWS bucket to a directory, it should retrieve files from the previous day. These files are then picked up via a UNC share by a 3rd party system. The issue is that the files come in as a pair of files but my script only picks up a single file:
open <BUCKET CONNECTION STRING - THIS IS FINE>
lcd C:\EcoDrive
cd ECODRIVE
get *.* %TIMESTAMP-1D#yyyymmdd% -preservetime
exit
I'd appreciate any help.

Reply with quote

Advertisement

paul.moreland
Joined:
Posts:
5
Location:
Manchester

Forward Progress

I think I'm getting somewhere, I've changed the above to:
get *.* -filemask=">=1D" -preservetime
This now brings files back with the same date as when the script runs, ideally I'd like it to bring back only the files dated the day before but can't seem to suss out the mask to do that, any suggestions?

Again, thanks in advance.

Reply with quote

Advertisement

You can post new topics in this forum