Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

paul.moreland

Thanks

I'll try that. Appreciated.
paul.moreland

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.
paul.moreland

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.