Connect to a FTP Server and performs login. Corresponds to the FTPConnect action.
object.FTPConnect(Name, [ConnectString])
A connection string dialog window is available for the FTPConnect action in the Macro Editor. This tool automatically builds a valid connection string based on the information entered by the user. This string can then be copied and pasted into the script editor. Note thought that if you are using a connection string copied from the macro editor, you will need to enclose the connection string in quotes when including it as the ConnectString argument.
Newlook Smartclient only.
Name - (String, Required)
A name that is to be assigned to the ftp connection. The connection will be referred to by this name in subsequent ftp actions.This argument must be enclosed in quotes.
ConnectString - (String, Optional)
A string specifying the FTP connection details. This argument consists of a semi-colon separated name/value pair that can be set to one of two things:
Each name/pair value is formatted as so: 'name=value'. For example: Address=192.168.1.1;Port=4245
This method returns an object with a Name property set to the string specified in the Name argument.
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 "AcmeFTPConnection", "Connection=AcmeFTP;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" AcmeFTPConnection.Download "STATES.MBR", "/QSYS.LIB/DDM.LIB/STATES.FILE", nlFTPDownloadWait, nlFTPDownloadAbort AcmeFTPConnection.Disconnect |
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.