I associated .kix with kix32. (and with notepad)
explorer, tools, folder options, file types, .kix, advanced, ...
Quote:


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.kix]
@="kix_auto_file"

[HKEY_CLASSES_ROOT\kix_auto_file]
@="KiXtart Script"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\kix_auto_file\DefaultIcon]
@="shell32.dll,134"

[HKEY_CLASSES_ROOT\kix_auto_file\shell]
@="edit"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\edit]
@="Edit in Notepad"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\edit\command]
@="C:\\WINDOWS\\system32\\NOTEPAD.EXE %1"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\edit\ddeexec]

[HKEY_CLASSES_ROOT\kix_auto_file\shell\edit\ddeexec\Application]
@="NOTEPAD"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\edit\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_in_Console]
@="Run in Console"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_in_Console\command]
@="C:\\WINDOWS\\KIX32.EXE \"%1\""

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_Windowless]
@="Run Windowless"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_Windowless\command]
@="C:\\WINDOWS\\WKIX32.EXE \"%1\""

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_Windowless\ddeexec]

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_Windowless\ddeexec\Application]
@="WKIX32"

[HKEY_CLASSES_ROOT\kix_auto_file\shell\Run_Windowless\ddeexec\Topic]
@="System"







then run this code:
Code:

$CURRENTPATH = "C:\Some Sources (KIX)\WIP"
$CURRENTITEM = "mcafeemanager3.kix"
$sItem = $CURRENTPATH + "\" + $CURRENTITEM
Run 'cmd /c "'+$sItem+'"'


and it fails
Quote:

'C:\Some' is not recognized as an internal or external command,
operable program or batch file.





change the path to be without parens and it works
Code:
$CURRENTPATH = "C:\Some Sources KIX\WIP"
$CURRENTITEM = "mcafeemanager3.kix"
$sItem = $CURRENTPATH + "\" + $CURRENTITEM
Run 'cmd /c "'+$sItem+'"'


or
change the run statement to be Run 'kix32.exe "'+$sItem+'"' and it works
Code:
$CURRENTPATH = "C:\Some Sources (KIX)\WIP"
$CURRENTITEM = "mcafeemanager3.kix"
$sItem = $CURRENTPATH + "\" + $CURRENTITEM
Run 'kix32 "'+$sItem+'"'



Edited by Radimus (2006-02-22 08:06 PM)
_________________________
How to ask questions the smart way <-----------> Before you ask