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?
Calling RushApp.FTP.DisableSite from mIRC
-
- Posts: 11
- Joined: Mon Oct 31, 2011 11:20 am
-
- Posts: 11
- Joined: Mon Oct 31, 2011 11:20 am
Re: Calling RushApp.FTP.DisableSite from mIRC
To test, whether this procedure even exists in FTPRush, I've done this:
Disabling works, but re-enabling doesn't at my first try.
EDIT: The missing e could be the reason :D
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;
EDIT: The missing e could be the reason :D
-
- Posts: 11
- Joined: Mon Oct 31, 2011 11:20 am
Re: Calling RushApp.FTP.DisableSite from mIRC
Oh, it looks like it works in FTPRush 1.1.30. I've been using an older version (1.0.0623).