How to programmatically download a file?

Hi everyone!

One {site i’ve interested} has a particular file, which is published every day.

I wish to write an agent to download it at 8.00 every day.

Does anyone know how?

Thanks,

Dmitry.

Subject: How to programmatically download a file?

Hi Dmitry

LotusScript or formula does not contain any functionallity to download a file. So - in therory, you can’t.

BUT… If it was me…

I would find a command-line http/ftp download program and use this in your agent. Use the shell command to trigger the command-line program.

After the shell command, you can make a loop to wait for the file to be downloaded. When this is done you can do whatever you want to do with the file.

Hope it helps…

Christian Gravgaard

Theilgaard Mortensen A/S

Subject: RE: How to programmatically download a file?

Here is one such program, and it’s freeware too:HttpCopy - Active+ Software

Subject: How to programmatically download a file?

You can use FTP protocol in LotusScript :

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/9e752a60b6f902c7852568ef006b4ad1?OpenDocument

or

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/893e8bd4f9545a6685256b4f0075398d?OpenDocument

Subject: RE: How to programmatically download a file?

I have made this work in Notes, but have had no success in making this work in a Browser. Any ideas? I am using it in a WebQueryOpen event agent.