Darren,

What about the inverse of what Howard wrote?

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

HTH,

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's