Page 1 of 1 1
Topic Options
#11165 - 2001-08-06 03:55 PM Writevalue
Anonymous
Unregistered


A change needs to done to a Multi-String, I have the code and it works but with one side effect that is causing problems. Its placing a Null entry so when you look at the key after running the script you have two entries.

Any ideas of how to get around this?

My Code is as follows:

WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Client\Sites","Site List","200", "REG_MULTI_SZ")

Thanks

Top
#11166 - 2001-08-06 04:40 PM Re: Writevalue
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
I don't know if this helps, but you could try to end your expression with the stringseparator (Pipe), so that your code looks like this:

WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Client\Sites","Site List","200|", "REG_MULTI_SZ")


Erik

Top
#11167 - 2001-08-07 01:59 PM Re: Writevalue
Anonymous
Unregistered


Just a thought...why not try "REG_SZ" instead of "REG_MULTI_SZ".

I'm a newbie so forgive my ignorance if this is wrong

Top
#11168 - 2001-08-16 06:33 PM Re: Writevalue
Anonymous
Unregistered


Kholm,
You know I did try

WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Client\Sites","Site List","200|", "REG_MULTI_SZ")

but for some reason it didn't work (inserted extra return), however when I retyped the code it worked... go figure

ScottH,

REG_SZ is for a single string, the registry entry that I was trying to change was a Multi-string, so I had not choice.

Thanks
Michele

Top
#11169 - 2001-08-16 10:06 PM Re: Writevalue
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
MCardone -
"Its placing a Null entry so when you look at the key after running the script you have two entries" -

You have two identical values under one registry key?

Bill

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 795 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.052 seconds in which 0.026 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