It's likely failing because there is no mirc.exe in $mircdir in a default install. Try: //echo -a $file([color:red]$mircexe).sig[/color]