Retrieve a file from the FTP server to the local computer.
Connection.Download (Name , Folder [, Wait, FileAlreadyExists])
Newlook Smartclient only.
Name – (String, Required)
Name of the file to retrieve from the FTP server.
Folder – (String, Required)
Folder to retrieve file from. This folder name is relative to the 'Current folder location'
Wait – (String, Optional)
Optional parameter to specify whether the execution of the action should wait for the download to complete (synchronous) or start the download without waiting (asynchronous). This parameter should be set to one of the pre-defined Wait constants.
FileAlreadyExists – (String, Optional)
Action to take if the file being downloaded already exists in the directory specified by the 'Folder' parameter. The FileAlreadyExists argument may be set to one of the pre-defined File Exists constants.
The following example connects to an ftp server and downloads the STATES.MBR file, places it into a folder on your local C:\Temp folder then disconnects: VB SCRIPT:App.FtpConnect "iSeries_test", "Connection=iSeries FTP;Passive=True;Anonymous Login=False;Email [email protected];Library List=QGPL.LIB,QHLPSYS.LIB,QSYS.LIB,QSYS2.LIB,QTCP.LIB,QUSERSYS.LIB;List Formats=OS/400 QSYS.LIB;Download Folder=C:\Temp;Connect Timeout=60;Receive Timeout=60;Send Timeout=60;Maximum Simultaneous Transfers=4;Transfer Options=7"
iSeries_test.Download "STATES.MBR", "/QSYS.LIB/DDM.LIB/STATES.FILE", nlFTPDownloadWait, nlFTPDownloadAbort
iSeries_test.disconnect |
FTPConnect Method | Disconnect Method | Upload Method | ChangeFolder Method | Download Method | NewFolder Method | NewLibrary Method | NewMember Method | NewPhysicalFile Method | Quote Method | Rename Method
© 2004-2021 looksoftware. All rights reserved.