setting %a = $ticks is simply to give the com a unique name. There IS a comclose, check the last line
if !$comerr { .comclose %a $com(%a,Run,3,bstr,filename.bat,uint,0,bool,true) }
. smile