It is impossible to handle files containing double spaces with findfile, ie:
echo -s $shortfn($findifle(c:\,*.ini,1,1)) -> c:\AAAAAA~1.INI
var %a = $findifle(c:\,*.ini,1,1, echo -s $shortfn($1-)) -> c:\aaa aaa.ini
create c:\aaa__aaa.ini (_ are spaces)
alias bug {
echo -s $shortfn($findfile(c:\,a*.ini,1,1))
var %a = $findfile(c:\,a*.ini,1,1, echo -s $shortfn($1-))
}
So I have to perform a $findfile(....,%i,1) loop instead of $findfile(......,0,1,command_here)