Page 1 of 1 1
Topic Options
#20190 - 2002-04-19 11:58 AM Script error : error in parameters!
Ketil Offline
Fresh Scripter

Registered: 2002-04-19
Posts: 6
Hi i have got a litle problem.Im trying to use kix to modify office2000 registry settings on a Terminalserver.
Here's one it fails on:
$skey=”HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\General”
writevalue($skey”,"SharedTemplates",$sharetempl,“REG_EXPAND_SZ”)
I have defined: $sharetempl=m:\office2000\templates”;
But this works...
$skey="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4"
writevalue($skey,"CachePath",$cachepath4,"REG_SZ")

The erromessage i get is the same as my subject.
any hints will be greateful

Top
#20191 - 2002-04-20 12:18 AM Re: Script error : error in parameters!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ketil,

yup, thats a simple one :

There is a " too much in the 4th line of your post ... writevalue($skey ","SharedTemplates",...

hth

Jochen
_________________________



Top
#20192 - 2002-04-20 12:30 AM Re: Script error : error in parameters!
Ketil Offline
Fresh Scripter

Registered: 2002-04-19
Posts: 6
Yup , that made me get by that one....no i get
Script error : Invalid Registry type...

Top
#20193 - 2002-04-20 12:45 AM Re: Script error : error in parameters!
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
I think you will find that that key should be REG_SZ not REG_EXPAND_SZ

[Big Grin]

[ 19 April 2002, 12:53: Message edited by: Dean R ]
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
#20194 - 2002-04-20 12:49 AM Re: Script error : error in parameters!
Ketil Offline
Fresh Scripter

Registered: 2002-04-19
Posts: 6
I still get the same errormessage using DWORD or REG_SZ
Top
#20195 - 2002-04-20 12:55 AM Re: Script error : error in parameters!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmm .. the other one i missed before was :

$sharetempl=m:\office2000\templates”

should be :

$sharetempl="m:\office2000\templates”
_________________________



Top
#20196 - 2002-04-20 12:56 AM Re: Script error : error in parameters!
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
Yep sorry, my bad, mixed myself up
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

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

Generated in 0.155 seconds in which 0.086 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