uh i think i found the problem..

i put echo $comerr before if (!$comerr) and it echos 1

Code:
.comopen $1 WScript.Shell
isn't working