Calling RushApp.FTP.DisableSite from mIRC

Please post here if you have problems in using FTP Rush.
Post Reply
Rhino Cracker
Posts: 11
Joined: Mon Oct 31, 2011 11:20 am

Calling RushApp.FTP.DisableSite from mIRC

Post by Rhino Cracker »

Hi,

I was trying to use the DisableSite-Command documented here: http://www.wftpserver.com/help/ftpclien ... lesite.htm" rel="nofollow" rel="nofollow
In a mIRC script using rushmirc.dll to temporary disable sites.

So I'm calling /dll rushmirc.dll RushScript RushApp.FTP.DisableSite('site1',TRUE); like usual.
And FTPRush is telling me (in FTPRush log, not in mIRC): (10:41:49) Script: row(1), col(38), Unknown member method: 'DisableSite'

Do you have any idea how to use it?
Rhino Cracker
Posts: 11
Joined: Mon Oct 31, 2011 11:20 am

Re: Calling RushApp.FTP.DisableSite from mIRC

Post by Rhino Cracker »

To test, whether this procedure even exists in FTPRush, I've done this:

Code: Select all

procedure OnSwitchlayout(Sender);
begin
  ...
  RushApp.UI.Menu.Remote.Add('', 'Disable GS',2,'').OnClick :='disabletest';
  RushApp.UI.Menu.Remote.Add('', 'Enable GS',2,'').OnClick :='enabletest';
end;

procedure disabletest(Sender);
begin
  RushApp.FTP.DisableSite('GS',TRUE);
end;

procedure enabletest(Sendr);
begin
  RushApp.FTP.DisableSite('GS',FALSE);
end;
Disabling works, but re-enabling doesn't at my first try.

EDIT: The missing e could be the reason :D
Rhino Cracker
Posts: 11
Joined: Mon Oct 31, 2011 11:20 am

Re: Calling RushApp.FTP.DisableSite from mIRC

Post by Rhino Cracker »

Oh, it looks like it works in FTPRush 1.1.30. I've been using an older version (1.0.0623).
Post Reply