This looks for a string %exclude%
in a file templist.m3u
and puts mismatching lines into file files.m3u
.
findstr /irv "%exclude%" "%temp%\templist.m3u%" >%temp%\files.m3u
The problem is that the string %exclude%
can sometimes have multiple values, separated by ,
like s0,s1,s3
with a maximum of -- I don't know -- maybe five values. I need a list where all lines matching any of these values are removed.