mIRC Home    About    Download    Register    News    Help

Print Thread
#38363 26/07/03 02:54 AM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
writeini data\backup.ini Channels $readini(mirc.ini, chanfolder, ?)

I need to copy all channels from ([chanfolder]) mirc.ini to another *.ini file..

help confused

#38364 26/07/03 03:41 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

  var %i = 1
  while $ini($mircini, chanfolder, %i) != $null {
    writeini data\backup.ini Channels $ifmatch $readini($mircini, chanfolder, $ifmatch)
    inc %i
  }


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#38365 26/07/03 05:58 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Or
Code:
  remini blah.ini Channels
  window -h @@
  aline @@ [Channels]
  loadbuf -tchanfolder @@ $mircini
  filter -wf @@ blah.ini
  close -@ @@
To avoid while loops and minimize opens/reads/writes to the files.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#38366 26/07/03 12:48 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Thanks hammer.. smirk


Link Copied to Clipboard