Page 1 of 1 1
Topic Options
#16442 - 2002-01-21 01:31 PM Writevalue problem
tonyh Offline
Getting the hang of it

Registered: 2002-01-09
Posts: 55
Loc: UK
Hi everyone (again)

I am have problems writing a value to the registry. The reistry entry has "" around the registry entry itself. Does this confuse kix as it doesnt write the value I just get errors. Can anyone help.

WriteValue("HKEY_CLASSES_ROOT\mailto\Shell\Open\command","",""C:\PROGRA~1\MICROS~2\Office\OUTLOOK.EXE" -c IPM.Note /m "%1"","REG_SZ")


Many thanks

Tony

_________________________
Tonyh

Top
#16443 - 2002-01-21 01:54 PM Re: Writevalue problem
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
You should try this :
$Param='"C:\PROGRA~1\MICROS~2\Office\OUTLOOK.EXE" -c IPM.Note /m "%%1"'
WriteValue("HKEY_CLASSES_ROOT\mailto\Shell\Open\command","","$param","REG_SZ")
Also, maybe the " " between $param in writevalue shouldn't be here, as i don't test it. Run it, and check the value in registry. If you have too much " ", you know where to remove them

note : If %, $ and @ are used as strings, they have to be used as is : %%, $$ or @@

[ 21 January 2002: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)

Top
#16444 - 2002-01-21 02:00 PM Re: Writevalue problem
tonyh Offline
Getting the hang of it

Registered: 2002-01-09
Posts: 55
Loc: UK
Your a star Alex - its work

Many thanks

Tony

_________________________
Tonyh

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 2366 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.055 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

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