Home » Developer & Programmer » Forms » Downloading files from ftp server
Downloading files from ftp server [message #84661] Mon, 12 April 2004 23:13 Go to next message
Rajeev Katyal
Messages: 55
Registered: April 2002
Member
Is it possible to download files from ftp server using D2K forms 4.5 and 6i....

The ftp server allows download by providing user id and password...

Any help?

Please elaborate.

Thanks,
Re: Downloading files from ftp server [message #122542 is a reply to message #84661] Tue, 07 June 2005 03:49 Go to previous messageGo to next message
Leo007
Messages: 15
Registered: June 2005
Junior Member
Hi Rajeev Katyal,

you can use the ftp program of windows.

FORMS procedure:
declare
l_windows_cmd varchar2(100);
begin
l_windows_cmd := 'ftp -s:C:\ftp.txt';
host (l_windows_cmd);
end;


create a txt file called ftp.txt on Drive C:

--- TXT File
open my.ftp.server.com
username
password
binary
get ftp_file.sql C:\ftp_file_to_local_file.sql
quit
--- END TXT FILE
Re: Downloading files from ftp server [message #122544 is a reply to message #122542] Tue, 07 June 2005 03:50 Go to previous message
Leo007
Messages: 15
Registered: June 2005
Junior Member
I prefer using API functions of wininet.dll because if you create a txt file everyone can see the password and username.

But my problem is I don't know how.

Leo
Previous Topic: Need help
Next Topic: Doubt in lov
Goto Forum:
  


Current Time: Fri Sep 20 01:28:37 CDT 2024