I am trying to remove all file types within a custom @window
When I load a list of mixed files I would like to filter out
unwanted file types in a list loaded to the custom @Window
This is what I have come up with but it does not work.
Can someone point out what I am doing wrong..


Remove Audio Files: {
[color:green] ; counts the number of tokens in the alias atypes [color:red]
var %at = $numtok(atypes,59)
while ( %at > 0 ) {
[color:green] ; this line is suppose to filter the file types in the window [color:red]
filter -xwwc @test @test $gettok(atype,%at,59)
dec %at
}
}
[color:green]
this is a list of the file types I wish to remove from the window
[color:red] alias -l atypes return .mp2;.mp3;.mp4;.m3u;.wav;.mid;.mod;.ra;.vob;.wma

Last edited by Othello; 22/08/03 01:02 AM.



Intelligence: It's better to ask a stupid question, then to prove it by not asking....