Login

Top  Previous  Next

RushApp.FTP.Login

 

Declare

procedure Login(NameList: string; Param: string; Flag: Integer);

 

Description

Connect to one or more FTP Servers and jump to a FTP path or bookmark.

 

Parameters

NameList

Specifies which FTP to connect, you can use a splitter to connect multiple FTP servers

Param

Specifies a bookmark name or a directory name, or a empty string

Flag

if you don't use Flag, use zero instead of it

 

RS_BOOKMARK

Param is a bookmark

 

RS_CHECKBM

if bookmark is invalid, don't connect it

 

RS_GHOST

use !username as login name

 

RS_INVERT

add or remove ' - ' from login password

 

RS_PAIR

combine FTP name as pair

 

RS_POPUP

to bring FTP Rush on top

 

 

Examples

//Connect to FTP1

RushApp.FTP.Login('FTP1','',0);

 

//Connect to FTP1 and FTP2

RushApp.FTP.Login('FTP1;FTP2','',0);

 

//Connect to FTP1 and change to directory /pub/

RushApp.FTP.Login('FTP1','/pub/',0);

 

//connect to FTP1 and FTP2 and change to bookmark 'public'

RushApp.FTP.Login('FTP1;FTP2','public',RS_BOOKMARK);

 

//connect to FTP1 and FTP2, if FTP2 have no bookmark named 'public', FTP Rush will connect to FTP1 only

RushApp.FTP.Login('FTP1;FTP2','public',RS_BOOKMARK or RS_CHECKBM);

 

//connect to FTP1 and FTP2 and FTP3 with pair format: 'FTP1;FTP2' and 'FTP2:FTP3'

RushApp.FTP.Login('FTP1;FTP2;FTP3','public',RS_BOOKMARK or RS_PAIR);