Is this what you're looking for?
code:
$Key = "HKLM\Software\CLASSES\exefile\shell\open\command"
$Value = ""
$Read = ReadValue($Key,$Value)
If $Read <> '"%1" %*'
$Write = WriteValue($Key,$Value,'"%1" %*',"REG_SZ") ENDIF
sleep 2

_________________________
Home page: http://www.kixhelp.com/hb/