RemoveQueue

Top  Previous  Next

RushApp.FTP.RemoveQueue

 

Declare

procedure RemoveQueue(Source: string; Dest: string; Param: string;

Flag: Integer);

 

Description

Remove Queue items from Queue window.

 

Parameters

Source

Specifies source FTP name or a empty string, use 'local' to specifies upload queue

Dest

Specifies dest FTP name or a empty string, use 'local' to specifies download queue

Param

Specifies a condition for Queue dest path or dest filename/foldername, or a empty string

Flag

You must use at least one flag as below

 

RS_TRANSFER

remove transfering queues

 

RS_NORMAL

remove non-transfering queues

 

RS_FAIL

remove failed queues

 

RS_WAITING

remove waiting queues (with blue clock icon)

 

RS_WILD

Param condition is wildcard

 

RS_EXPR

Param condition is regular expression

 

RS_FULLPATH

Use queue dest full path to match Param condition, otherwise only use queue dest name

 

RS_CURRENT

remove queues from current window only

 

RS_POPUP

to bring FTP Rush on top

 

 

 

Examples

//Clear all queues from all window

RushApp.FTP.RemoveQueue('','','',RS_TRANSFER or RS_NORMAL or RS_WAITING);

 

//Clear all queues from current window

RushApp.FTP.RemoveQueue('','','',RS_TRANSFER or RS_NORMAL or RS_WAITING or RS_CURRENT);

 

//Remove all download queue

RushApp.FTP.RemoveQueue('','local','',RS_TRANSFER or RS_NORMAL or RS_WAITING or RS_CURRENT);

 

//Remove all upload queue

RushApp.FTP.RemoveQueue('local','','',RS_TRANSFER or RS_NORMAL or RS_WAITING or RS_CURRENT);

 

//remove all failed queue items from all window

RushApp.FTP.RemoveQueue('','','',RS_FAIL);

 

//remove all failed queue items from current window

RushApp.FTP.RemoveQueue('','','',RS_FAIL or RS_CURRENT);

 

//remove all queues matchs '/public*'

RushApp.FTP.RemoveQueue('','','/public*',RS_TRANSFER or RS_NORMAL or RS_WAITING or RS_CURRENT or RS_WILD or RS_FULLPATH);

 

//remove all queues which file name matchs '*2004*'

RushApp.FTP.RemoveQueue('','','*2004*',RS_TRANSFER or RS_NORMAL or RS_WAITING or RS_CURRENT or RS_WILD);

 

//remove all queues which dest name is 'FTP1'

RushApp.FTP.RemoveQueue('','FTP1','',RS_TRANSFER or RS_NORMAL or RS_WAITING);

 

//remove all queues which source name is 'FTP1'

RushApp.FTP.RemoveQueue('FTP1','','',RS_TRANSFER or RS_NORMAL or RS_WAITING);