mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: Virus #51544 27/09/03 02:07 AM
Joined: Aug 2003
Posts: 314
S
Sigh Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
/!unload -nrs "C:\path\to\script"

That will definitely work, providing the path you specify is to a file that has been loaded into remotes. Make sure you are specifying the right path, if it has spaces then enclose it in quotes. Type:

//var %i 1 | while $script(%i) { echo -a %i - $ifmatch | dec %i }

To see the full filenames of your loaded scripts

Also: for the unknown operator error use if $read(...) != $null {

Re: Virus #51545 27/09/03 02:14 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
alias restore { <<-- line 1
var %a = $+(",$isalias(unload).fname,") <<-- line 2
if $read(%a,w,alias*unload*) || $read(%a,w,*=alias*unload*) <<-- line 3
{
If I leave it like that (with the brace in the wrong position), I get "insufficient parameters" error, but not an "unknown operator"
*shrug*

Re: Virus #51546 27/09/03 02:15 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
* /unload: invalid switch

i didnt belive it could be so hard to unload a file with a damn alias in it.. frown


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Virus #51547 27/09/03 02:17 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I just took the lines that was abow the error.. then that litle felow come with it wink whole code look like

Code:
alias restore {
  var %a = $+(",$isalias(unload).fname,")
  if $read(%a,w,alias*unload*) || $read(%a,w,*=alias*unload*) {
    write -dl $+ $readn %a
    .reload -rs %a
  }
}


just count the lines, line no: 3 is the one i have a problem with..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Virus #51548 27/09/03 02:22 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, I don't know what is wrong, here it works exactly as I posted above, it unloads the script...

Re: Virus #51549 27/09/03 02:24 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
did you add a line in the script you trying to unload

This line:
alias unload { /echo -ae *** Unloaded script ' $+ $2- $+ ' | halt }

and i using mirc 6.03 dont know if that should interfare with the code, just an idea


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Virus #51550 27/09/03 02:27 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
I added it like I posted in this post

Re: Virus #51551 27/09/03 02:40 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Hm you know, I was using 6.1. Just tried with 6.03 and it doesn't work, although I don't get any errors.

Re: Virus #51552 27/09/03 03:28 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
//.timer 1 0 !unload -rs "filename.ini" <- worked in 6.03 & 6.1 grin

Re: Virus #51553 27/09/03 03:52 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
or manually open your mirc directory find the file called mirc.ini
scroll thru it and find a section that looks like this

[afiles]
n0=aliases.ini
[rfiles]
n0=remote.ini
n1=remote.ini
n2=script.ini

remove the name of the .mrc file from that list under [rfiles]

only do this with your mirc CLOSED... once done restart it and then u should be free from that. DONT forget to DELETE the BAD file from your pc


D3m0nnet.com
Re: Virus #51554 27/09/03 03:57 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
The point is to do it from a script, a scripted "cleaner" for this file.. wink.

Re: Virus #51555 27/09/03 03:58 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ah thats why blush.
i just tried a test on removing the filename from that list with mirc open, it didnt work.


new username: tidy_trax
Re: Virus #51556 27/09/03 04:22 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
that one did the trick.. thnx smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Virus #51557 27/09/03 04:33 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
NPs smile

Re: Virus #51558 27/09/03 05:52 AM
Joined: Dec 2002
Posts: 196
T
trenzterra Offline
Vogon poet
Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
I think /remini works in this case?


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
Re: Virus #51559 27/09/03 06:19 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I still have to unload it.. smile and i want to make shure the file is unloaded, then i wanted to clear the %variables that was set.. and we solved that. so now my addon is complete smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Virus #51560 27/09/03 03:57 PM
Joined: May 2003
Posts: 161
A
Ashkrynt Offline
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
It's -rsn, not -nrs.

Re: Virus #51561 28/09/03 11:48 AM
Joined: Sep 2003
Posts: 5
R
Rachele Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Sep 2003
Posts: 5
Can you imagine? I had 258 e-mails at the same time. It was so awful

Page 2 of 2 1 2