Page 1 of 1 1
Topic Options
#190171 - 2008-10-20 05:10 PM REG_BINARY
MACE Offline
Starting to like KiXtart

Registered: 2004-09-07
Posts: 150
Loc: Manchester UK
Can anyone shed light on why the following is occuring:

 Code:
$CMD="49,50,4d,2e,41,70,70,6f,69,6e,74,6d,65,6e,74,2e,43,6f,6e,64,65,63,6f,00,00"
$ = WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Office\"+$MSO+".0\Outlook\Custom Forms\Compose","IPM.Appointment",$CMD,"REG_BINARY")


resulting in:

"IPM.Appointment"=hex:49,4e,00,4d,4f,e0,41,48,00,70,76,f0,69,6f,e0,74,7a,d0,65,6b,e0,74,76,e0,43,49,f0,6e,74,40,65,6b,30,6f,6f,00,00"

Which as you can see is nothing like what is required !

Top
#190172 - 2008-10-20 05:14 PM Re: REG_BINARY [Re: MACE]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
don't remember how you must format the string to get it correct, but for one, you should loose the comma's.
normally I do write the value by hand and use readvalue to get the correct format for use in the script.
_________________________
!

download KiXnet

Top
#190173 - 2008-10-20 05:19 PM Re: REG_BINARY [Re: Lonkero]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Iirc you can just leave out the commas and the hex: stuff.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#190174 - 2008-10-20 05:37 PM Re: REG_BINARY [Re: Mart]
MACE Offline
Starting to like KiXtart

Registered: 2004-09-07
Posts: 150
Loc: Manchester UK
Edited the registry, read it into kix, and you are right; just leave out the commas...

$CMD="49504d2e4170706f696e746d656e742e436f6e6465636f0000"

Thanks all

Top
Page 1 of 1 1


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

Who's Online
0 registered and 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.073 seconds in which 0.04 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