mIRC Home    About    Download    Register    News    Help

Print Thread
#179344 21/06/07 08:02 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Many files just save in mirc dir but I dont want it in there so is there a code i can add to save the file in another dir in mirc?

Last edited by Garou; 21/06/07 08:06 PM.
Garou #179346 21/06/07 08:04 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
what files?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #179347 21/06/07 08:07 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
let say ctcp.txt or badname.hsh
i want to save them in mirc\sys\ctcp.txt and mirc\sys\badname.hsh

Garou #179348 21/06/07 08:15 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Um, just choose another folder when saving? If you're automatically saving via scripts, then modify the script so that it saves where you want it.

e.g.

hsave badname sys/badname.hsh
vs
hsave badname badname.hsh

schaefer31 #179349 21/06/07 08:17 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I know but what do I change in the dialog to make it save in a diff folder?

Garou #179350 21/06/07 08:29 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You don't just mean Options > DCC > Folders in the Options menu, do you?

5618 #179351 21/06/07 08:32 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Exemple: I want the join.op to save and open from another dir like in mirc\sys\join.op not from mirc\join.op

Code:
 
on ^*:join:#: {
  if (%nicktracker == off || !%nicktracker) { return }
  if (!$hget(join)) nicktracker
  hinc join $address($nick,2) $+ $chan $+ .num
  if ($hget(join,$address($nick,2) $+ $chan $+ .last)) { window @Tracker 0 200 900 300 | aline -p @Tracker $asctime([HH:nn]) 9 $nick 10 has joined # $hget(join,$address($nick,2) $+ $chan $+ .num) times. Last as 9 $hget(join,$address($nick,2) $+ $chan) 4 $duration($calc($ctime - $hget(join,$address($nick,2) $+ $chan $+ .last))) ago. }
  .write $_sfn($logdir@Tracker.log) $asctime(dd/mm/yy-HH:nn) $nick $address Tracker $chan
  hadd join $address($nick,2) $+ $chan $nick
  hadd join $address($nick,2) $+ $chan $+ .last $ctime
  var %a = 1,%n = 0,%b = 1
  while $hget(join,$address($nick,2) $+ .nicknum. $+ %a) {
    if ($v1 == $nick) %n = 1 
    inc %a
  }
  haltdef
}
on *:nick: {
  if (!$hget(join)) nicktracker
  var %a = 1,%n = 0
  while $hget(join,$address($newnick,2) $+ .nicknum. $+ %a) {
    if ($v1 == $newnick) %n = 1 
    inc %a
  }
  if (%n == 0) hadd join $address($newnick,2) $+ .nicknum. $+ %a $newnick
}


alias nicktracker {
hmake join 5000
hload join join.op
.timer 0 600 hsave join join.op
}

menu @Tracker {
Logs
.On:/log On 
.Off:/log Off
..-
..Open:/run notepad.exe $dir="Select a log file" $mircdirlogs\*.log
-
Clear:/clear
-
Close:/_closewin $active
}



Garou #179352 21/06/07 08:34 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Create a folder called sys in your mIRC directory and move join.op to it.

Replace
hload join join.op
.timer 0 600 hsave join join.op

With
hload join sys/join.op
.timer 0 600 hsave join sys/join.op

schaefer31 #179353 21/06/07 09:00 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
ok thx that worked.

Last edited by Garou; 21/06/07 09:39 PM.

Link Copied to Clipboard