Simple FTP retrieval method. This method retrieves a file from an FTP server with a single method call. This method is synchronous and does not fire any events.
o.FTPGetFile(cServer,cSourceFile,cTargetFile,nBinary,cUsername,cPassword)
Return Value
Win32API Error number
Parameters
cServer
The server to connect to. Example: ftp.west.wind.com or 123.123.123.213
cSourceFile
Source File on the FTP Server.
cTargetFile
Target file on the local system.
nBinary
File transfer format. Defaults to Binary (2) . AscII - 1
cUsername
Optional - Username when connecting to a secure directory.
cPassword
Optional - Password when connecting to a secure directory
Remarks
This method provides no mechanism for reporting progress information.
Example
o=create("wwFTP") o.FTPGetFile("ftp.west-wind.com","/downloads/pkzip.exe",; "c:\temp\pkzip.exe")
See also:
Class wwFtp (deprecated) | Class wwFtp (deprecated) |© West Wind Technologies, 1996-2024 • Updated: 09/06/11
Comment or report problem with topic