Not withstanding all the invaluable contributions above, can anyone explain why and suggest a fix to the following:
I issue the KIX command:
$ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\open\command", "", '%SystemRoot%\system32\wkix32.exe "%1" %*', "REG_SZ")

but the registry says: C:\WINDOWS\system32\wkix32.exe "*

I Have to manually edit the registry to get:
C:\WINDOWS\system32\wkix32.exe "%1" %*

Then I get the results discussed above.

EDIT>>
Trial and error but finally got it to write the registry properly:
$ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\open\command", "", '%SystemRoot%\system32\wkix32.exe "%1" '+"%*", "REG_SZ")

Don't know why the %* causes the problem !


Edited by MACE (2007-07-18 12:57 PM)