| 
| 
| 
| #68161 - 2002-07-14 01:50 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
LonkeroYour problem is because the supplied .REG files are Unicode, and the Kix
 ReadLine() function is for reading ascii files.
 This topic  Unicode Converter UDF  discusses some unicode problems.
 My input to the debate includes a UDF called ReadFile which (like PIPE)
 returns an array containing the ascii text lines.
 Both ascii and unicode input files can be used.
 |  
| Top |  |  |  |  
| 
| 
| #68163 - 2002-07-14 03:31 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
I think Jens need to clarify the matter.Are the input files assumed to be:
 a) Always ascii
 b) always unicode
 c) any combination
 If Unicode is required then the Kix ReadLine function
 is useless for this operation
 
 |  
| Top |  |  |  |  
| 
| 
| #68165 - 2002-07-14 04:07 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Howard Bullock   KiX Supporter
 
       
   Registered:  2000-09-15
 Posts: 5809
 Loc:  Harrisburg, PA USA
 | 
I elected COM (a native ability of KiX) to save some strokes. I think I may need to save a lot more by the time every else chimes in.
 {edit} Also, in W2K SP2 Regedit.exe always shows a (default) value even when one doesn't exist. Regedt32.exe shows exactly want is there. I lost a couple hours last night trying to delete a key that wasn't there.
 ![[Mad]](images/icons/mad.gif)  ![[Embarrassed]](images/icons/blush.gif) trying to save the stroke for if KeyExist(). 
 [ 14 July 2002, 16:10: Message edited by: Howard Bullock ]
 |  
| Top |  |  |  |  
| 
| 
| #68168 - 2002-07-14 04:17 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Howard Bullock   KiX Supporter
 
       
   Registered:  2000-09-15
 Posts: 5809
 Loc:  Harrisburg, PA USA
 | 
I can't answer that. I only have W2K and the docs for WSH 5.5, 5.6. You have a choice of to two text based methods for FSO.
 |  
| Top |  |  |  |  
| 
| 
| #68170 - 2002-07-14 04:20 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Howard Bullock   KiX Supporter
 
       
   Registered:  2000-09-15
 Posts: 5809
 Loc:  Harrisburg, PA USA
 | 
The UNICODE was a nice twist. It took a couple minutes to make that determination since W2K handles it transparently on most tools.
 I guess I can re-code if you change them. That probably would more fair for those OS challenged individuals.
 ![[Wink]](images/icons/wink.gif) 
 [ 14 July 2002, 16:21: Message edited by: Howard Bullock ]
 |  
| Top |  |  |  |  
| 
| 
| #68172 - 2002-07-14 04:35 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Howard Bullock   KiX Supporter
 
       
   Registered:  2000-09-15
 Posts: 5809
 Loc:  Harrisburg, PA USA
 | 
In my approach WSH added strokes because of FSO object creation line and the long object and methods names used in WSH. It only added one line and some chars for me.
 {edit}
 Now if I use more WSH functionality for things other than just reading a file, I might be able to improve the product in areas where KiX is a little shy on functionality, I might be able to make a better product.
 
 [ 14 July 2002, 16:39: Message edited by: Howard Bullock ]
 |  
| Top |  |  |  |  
| 
| 
| #68176 - 2002-07-14 07:14 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Howard Bullock   KiX Supporter
 
       
   Registered:  2000-09-15
 Posts: 5809
 Loc:  Harrisburg, PA USA
 | 
Wow. (Scratching my head...)
 |  
| Top |  |  |  |  
| 
| 
| #68177 - 2002-07-14 07:30 PM  Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST ) |  
| Sealeopard   KiX Master
 
       
   Registered:  2001-04-25
 Posts: 11165
 Loc:  Boston, MA, USA
 | 
Okay guys, I investigated the UNICODE thing. If the export is done from e.g. Windows 9x (and I believe Windows NT, though I don't have one ready right now), then the exported .REG file is a normal text file with the first line being 'REGEDIT4'.If the export is done from Windows 2000 (and Windows xP?), then the exported file is in UNICODE. This file cannot be reimported with REGEDIT /S under Windows 9x/NT. This type of file is identified by 'Windows Registry Editor Version 5.00' and is an UNICODE file.
 
 Allowed is only pure KiXtart, no external programs, WMI/ADSI/WSH is allowed since most have it installed anyway.
 
 I will post an updated .ZIP file soon not containing any UNICODE files, only REGEDIT4 .REG files. But it might take me an hour or so.
 
_________________________There are two types of vessels, submarines and targets.
 |  
| Top |  |  |  |  
 Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
 
 | 
| 
 
| 0 registered
and 739 anonymous users online. 
 | 
 |  |