oh...
and if the proggie supports error-info, you could simply use:
$RunGrpProgram = "g:\groups\usrtogrp.exe " + $selecttextfile2
shell "%comspec% /c $RunGrpProgram >nul"
if @error
"damn, it failed"
else
"who would have quessed, it works after all"
endif
_________________________
!

download KiXnet