:pad string with space (or other char)
:padX[string,length[,char]]
padl=`%@if[%2 LE %@len[%1],%1,%@substr[%@repeat[%@if["%3"=="", ,%3],%@eval[%2-%@len[%1]]]%1,0,%2]]`
padc=`%@if[%2 LE %@len[%1],%1,%@substr[%@repeat[%@if["%3"=="", ,%3],%@eval[(%2-%@len[%1])/2]]%1%@repeat[ ,%@eval[(%2-%@len[%1]/2)+1]],0,%2]]`
padr=`%@if[%2 LE %@len[%1],%1,%@substr[%1%@repeat[%@if["%3"=="", ,%3],%@eval[%2-%@len[%1]]],0,%2]]`
:get a count of files matching a spec
filecount=`%@word[" ",3,%@execstr[dir %1 /uk]]`