While loop / remove line - 20/02/03 03:25 PM
why doesn't this work?
It kind of works, but when theres a load of files it doesn't remove them all so i have to run it again, and sometimes it'll remove files without the .avi extension in
Code:
alias Removefle { var %fle = 1 while (%fle <= $line(@filelist,N)) { if (.avi isin $line(@filelist,%fle)) { dline @filelist %fle } inc %fle } }
It kind of works, but when theres a load of files it doesn't remove them all so i have to run it again, and sometimes it'll remove files without the .avi extension in