Page 1 of 1 1
Topic Options
#203717 - 2011-11-15 03:04 AM Cannot Tokenize a script which includes spaces in the path
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
Using the following command kixtart does not tokenize the script. No output is created when there is a path involved with the script.

kix32 somepath\script.kix /t

@serror returns "The Command Completed Sucessfully"
@result returns "1 file Deleted"

Can someone confirm please.


Top
#203734 - 2011-11-15 10:21 PM Re: Cannot Tokenize a script which includes the path [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...
I tokenized the kixgolf engine.
it did tokenize, the script just didn't work after that \:\)

tried with kix32.exe 4.62
C:\Users\Joo\Documents>KIX32.EXE -t kixgolf_wo\kixgolf_wo.kix
_________________________
!

download KiXnet

Top
#203735 - 2011-11-15 10:59 PM Re: Cannot Tokenize a script which includes the path [Re: Lonkero]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
Upon further investigation... try this.

 Code:
kix32 "Path with a space in it\script.kix" /t

Top
#203736 - 2011-11-15 11:04 PM Re: Cannot Tokenize a script which includes the path [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh... that might fail... lets see...

but can't. windows 7 sucks with that.
it locks the folder and I can't freaking rename a folder.
one of those things ppl hated vista for and I hate 7 for it.
can't rename a folder, how stupid is that?
_________________________
!

download KiXnet

Top
#203737 - 2011-11-15 11:05 PM Re: Cannot Tokenize a script which includes the path [Re: Lonkero]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
Say wha?
Top
#203738 - 2011-11-15 11:11 PM Re: Cannot Tokenize a script which includes the path [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
error 0
and no file present.

bug confirmed.
_________________________
!

download KiXnet

Top
#205582 - 2012-08-26 02:05 PM Re: Cannot Tokenize a script which includes the path [Re: Lonkero]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Hmm, I can't seem to reproduce this error.

Tokenizing files in directories containing spaces works fine for me. Note that the tokenized file is created in the same directory as the source script.

Could you please provide more detail on the exact scenario?

Ruud

Top
#205586 - 2012-08-26 04:54 PM Re: Cannot Tokenize a script which includes the path [Re: Ruud van Velsen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
From memory, I had a script where it was tokenizing a number of other scripts in different directories. If the path had a space in it, it would act like it tokenized it, the return error was 0, but nothing happened. If I remember correctly, the only way I could get it to work was to use "CD directory" and then it would work.

The failing code looked something like this, where the $dirs all had a space in them, and kix32 was not in directory of the tokenized script.

 Code:
for eache $dir in $dirs
  $cmd='kix32.exe' + $dir + '\script.kix -t'
  shell $cmd
  ? @serror
  ? @result
next


Not a fix for the issue, but I wonder if a tokenize function within kix would be useful for this type of use?


Edited by Allen (2012-08-27 07:07 AM)

Top
#205591 - 2012-08-26 09:22 PM Re: Cannot Tokenize a script which includes the path [Re: Allen]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Im assuming that -t is just a typo, and not how it is in the actual code? Or do -'s work same as /'s for parameters?

Edited by ShaneEP (2012-08-26 09:22 PM)

Top
#205593 - 2012-08-26 11:23 PM Re: Cannot Tokenize a script which includes the path [Re: ShaneEP]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
My experience is they both work. \:\)

Here is some new code I thought I might try when I get a minute...

 Code:
for each $dir in $dirs
  shell 'kix32 "' + $dir + '\script.kix" -t' 
  ? @serror
  ? @result
next


Not a fix for the issue, but I wonder if a tokenize function within kix would be useful for this type of use?


Edited by Allen (2012-08-27 07:03 AM)

Top
#205597 - 2012-08-27 06:59 AM Re: Cannot Tokenize a script which includes the path [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
Well the code above with the proper quoting works. \:\) Crisis averted.

Still, the internal tokenize might be useful if it easily added.

Top
#205721 - 2012-09-10 07:58 PM Re: Cannot Tokenize a script which includes the path [Re: Allen]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Hmm, tried to reproduce this, but something like:

kix32 "new folder\t.kix" /t

works fine for me. No error, and there's a t.kx in "New Folder".

If anyone has a scenario with which to reproduce this, please let me know.

Regards,

Ruud

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 509 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

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