Ultimate FTP command script function
If you are a server administrator, simply imagine chating with your friends in IRC channel and need to add one friend to your site, the basic operations is opening your FTP clients and sending Raw FTP Commands to server, or switching back to FTP client to checking who is online. Your time were wasted!
The build-in command script function allows you interact with our FTP client though external applications, executes commands in desired server, query server status and echo the response to IRC channel, checks what's new in the server, more and more functions waiting for your digging!
How to call the script function
We declared the RushApp.FTP.RAW script function, you may call it inside FTP client or from external programs such as mIRC with
our mIRC plugin dll. This function declared as below:
procedure RAW(NameList: string; Param: string; Flag: Integer);
Sends raw commands to all or specical connected/idle servers, if Param ANameList is empty string it sends to all connected/idle servers.
this function will never sends raw command to transfering connections.
Example 1: sends 'NOOP' to all connected and non-transfering sites
RushApp.FTP.RAW('','NOOP',0);
Example 2: sends 'NOOP' to all connected and non-transfering sites then logout
RushApp.FTP.RAW('','NOOP',RS_LOGOUT);
Example 3: connects to site 'FTP1' and sends 'NOOP'
RushApp.FTP.RAW('FTP1','NOOP',RS_LOGIN);
Example 4: connects to site 'FTP1' and 'FTP2', sends 'NOOP', then logout
RushApp.FTP.RAW('FTP1;FTP2','NOOP',RS_LOGIN or RS_LOGOUT);
