CWD

Top  Previous  Next

RushApp.FTP.CWD

 

Declare

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

 

Description

Let all or specifies connected/idle FTP Servers change remote directory.

 

Parameters

NameList

Specifies which FTP need to change remote directory, you can use a splitter for multiple FTP servers, if it's empty then all connected idle FTP servers will change remote directory

Param

Specifies a bookmark name or a directory

Flag

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

 

RS_BOOKMARK

Param is a bookmark

 

RS_POPUP

to bring FTPRush on top

 

Examples

//tell all non-transfering connections change to bookmark 'public'

RushApp.FTP.CWD('','public',RS_BOOKMARK);

 

//tell all non-transfering connections change to directory '/public/'

RushApp.FTP.CWD('','/public/',0);

 

//tell 'FTP1' server change to bookmark 'pub'

RushApp.FTP.CWD('FTP1','pub',RS_BOOKMARK);

 

//tell 'FTP1' and 'FTP2' server change to bookmark 'pub'

RushApp.FTP.CWD('FTP1;FTP2','pub',RS_BOOKMARK);

 

//tell 'FTP1' server change to directory '/public/'

RushApp.FTP.CWD('FTP1','/public/',0);

 

//tell 'FTP1' and 'FTP2' server change to directory '/public/'

RushApp.FTP.CWD('FTP1;FTP2','/public/',0);

 

 

See Also

Popup a dialog to accept input bookmark and tell all connections jump to this bookmark