mIRC Home    About    Download    Register    News    Help

Print Thread
#61581 23/11/03 08:01 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ok i have this little play list thing so it displays playlist in an edit box now what i am having trouble with is removeing .mp3 from the end of the file name..... any help?

Code:
alias ssongss {
  var %slist $mircdirmp3\mp3list.txt
  var %i 1 
  while (%i <= $lines(%slist)) {
    if (.mp3 isin $read(%slist, %i)) { return $remove($read(%slist, %i), .mp3) }
    did -a $dname 1 $read(%slist, %i)
    inc %i
  }
}


Need amazing web design for low price: http://www.matrixn3t.net
#61582 23/11/03 08:27 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Try this...

Code:
 
alias ssongss {  
var %slist $mircdirmp3\mp3list.txt  
var %i 1   
while (%i <= $lines(%slist)) {    
  did -a $dname 1 $remove($read(%slist, t, %i),.mp3)
  inc %i  
}
}



Link Copied to Clipboard