;
; Example: /checkfiles mylist.txt c:\mirc\
;
; - Will remove any exe file from c:\mirc\ folder
; which isn't listed in mylist.txt
;
alias checkfiles {
if !$isfile($1) || !$isdir($2-) {
echo -a Erroneous parameters.
return
}
window -h @files
loadbuf @files $1
var %num = $findfile($2-,*.exe,0,if (!$fline(@files,$1-)) .remove -b $+(",$1-,"))
window -c @files
echo * %num files were moved to the recycle bin.
}