I'm making a logviewer at the moment it works ok but only if the directory of the log is something like C:\mirc\logs\log.log but my script is in C:\Documents and Settings\Ross\My Documents\mIRC so when I load a log file into an @window using loadbuf something goes wrong and i get something like
Code:
SomeArtist - SomeSong
SomeArtist - SomeSong
SomeArtist - SomeSong
SomeArtist - SomeSong
[and]
Settings\Ross\My=Documents\mIRC\dmp3.ini options player 2

I've tried to move a log file around My Documents but I get the same thing I've also tried using other scripts that are in My Documents, does anyone know what the problem is?

the code i use to load the file,
Code:
  if ($did == 4) { 
    window @log2
    did -r logviewer 1
    loadbuf -r @log2 $line(@logviewer,$did(logviewer,4).sel)
    if ($line(@logviewer,N) != 0) {
      var %llst 1
      while (%llst <= $line(@log2,N)) {
        did -a logviewer 1 $strip($line(@log2,%llst))  
        inc %llst
      }
    }
  }