| 
| 
| 
| #203735 - 2011-11-15 10:59 PM  Re: Cannot Tokenize a script which includes the path
[Re:  Lonkero] |  
| Allen   KiX Supporter
 
       
 Registered:  2003-04-19
 Posts: 4562
 Loc:  USA
 | 
Upon further investigation... try this.
 
 
kix32 "Path with a space in it\script.kix" /t
 |  
| Top |  |  |  |  
| 
| 
| #205586 - 2012-08-26 04:54 PM  Re: Cannot Tokenize a script which includes the path
[Re:  Ruud van Velsen] |  
| Allen   KiX Supporter
 
       
 Registered:  2003-04-19
 Posts: 4562
 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.
 
 
 
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 |  |  |  |  
| 
| 
| #205593 - 2012-08-26 11:23 PM  Re: Cannot Tokenize a script which includes the path
[Re:  ShaneEP] |  
| Allen   KiX Supporter
 
       
 Registered:  2003-04-19
 Posts: 4562
 Loc:  USA
 | 
My experience is they both work.   
 Here is some new code I thought I might try when I get a minute...
 
 
 
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   KiX Supporter
 
       
 Registered:  2003-04-19
 Posts: 4562
 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 |  |  |  |  
 Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
 
 | 
| 
 
| 0 registered
and 360 anonymous users online. 
 | 
 |  |