Page 2 of 2 <12
Topic Options
#157677 - 2006-02-22 07:30 PM Re: Run\Exec Question.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
ok, I reproduced it. it isn't a kix issue, it is a filesystem issue.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#157678 - 2006-02-22 07:36 PM Re: Run\Exec Question.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
how did you reproduce it Rad ? I replicated the dir structure as outlined by apronk and everything works fine.
Top
#157679 - 2006-02-22 07:53 PM Re: Run\Exec Question.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
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

Top
#157680 - 2006-02-22 09:01 PM Re: Run\Exec Question.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Seems to work OK if one uses short file names:

$CURRENTPATH = "C:\SomeSo~1\WIP"

Top
#157681 - 2006-02-23 08:55 AM Re: Run\Exec Question.
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Thx for the help guys
I knew it had to do with DOS handling ()'s, seeying as the code posted by Radimus worked on all other path's.

Top
Page 2 of 2 <12


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.062 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org