FTPGet method

[method icon] FTPGet(Server$, LocalPath$, RemotePath$, File$, Flags)

>FTPGet

FTPGet

The FTPGet(Server, LocalPath, RemotePath, File, Flags) method initiates an FTP transfer from the specified server to the client.

The user is always prompted whether they want to allow the transfer. If they decline the call will fail. The user may also be prompted for a user name and password if the FTP server requires authentication. By default the user name and password for the KCML session is used. Flags should be set to one of the values from the FTP transfer type enumeration according to whether the file is binary or text.

File$ = "report.pdf"
REM Get location of user's 'My Documents' directory
Client.GetSpecialFolderPath(_CSIDL_PERSONAL, BYREF MyDocuments$)
REM We will download from a directory called 'reports' in the FTP default directory
Client.FTPGet("my_ftp_server", MyDocuments$, "reports", File$, _FTP_TRANSFER_TYPE_BINARY)
See also:

BrandSplash, CameraCapture, ClearDirectoryWatchEvent, CreateBookMark, DisplayScreen, EmptyClientCache, EnableUserPreferences, EnableWarnings, FireServiceEvent, ForceDefaultFont, ForceReadableTextMode, FTPPut, GetForms, GetServiceAttribute, GetServiceCookie, GetSpecialFolderPath, HTTPGet, OpenServiceWindow, PlaySoundFile, SetCharacterEncoding, SetDefaultIMEMode, SetDirectoryWatchEvent, SetPrinterFontName, SetPrinterFontSize, SetPrinterPort, SetServiceAttribute, SetServiceCaption, SetServiceConnection, SetServiceCookie, SetServiceUrl, SetThrottle, ShowSIP