#175023 - 2007-03-28 02:26 PM
Trying to write registry value
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
I am trying to update the registry for an Outlook setting so I have tried to create a basic kix script (see below). I am trying to run it from a cmd file but I get an error message, unknown command line 1 when I run the cmd file (details below). The files are in the location
login.cmd @echo off Kix32 c:\drivers\login2.kix
login.kix IF keyexist("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Options\Mail") $RC=WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Options\Mail","Send Pictures With Document","0","REG_DWORD") IF @ERROR = 0 ? "Value Written to Registry" ENDIF ENDIF
Any ideas would be appreciated.
|
Top
|
|
|
|
#175027 - 2007-03-28 03:04 PM
Re: Trying to write registry value
[Re: Soppy]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
Tried that, makes no difference. Tried running it with wkix32.exe and got same error. I'll shall try it on a different pc.
Should it work by simply clicking the cmd file or do I need to always run it as a logon script?
|
Top
|
|
|
|
#175029 - 2007-03-28 04:10 PM
Re: Trying to write registry value
[Re: JamesH]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
Thanks Les and James
Just tried what you said, all files in root directory, error message below
ERROR: unknown command [yPI] Script: c:\drivers\login2.kix Line: 1
When files are not in system root directory or c:\drivers I get different errors, like cannot locate file.
Any ideas as I am baffled to why it is not working.
|
Top
|
|
|
|
#175032 - 2007-03-28 04:21 PM
Re: Trying to write registry value
[Re: eriqjaffe]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
I have tried 2 scripts, sorry for confusing I should of posted it as same name as in earlier posts. I have checked and cmd file and script file have same names and still no joy
|
Top
|
|
|
|
#175033 - 2007-03-28 04:43 PM
Re: Trying to write registry value
[Re: Soppy]
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
Try sitting down at the computer in question and loging in as administrator then run it again, if it works then it is a security issue.
|
Top
|
|
|
|
#175036 - 2007-03-28 05:13 PM
Re: Trying to write registry value
[Re: Benny69]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
I have full admin rights, I have just logged on to the local computer out of the domain under administrator and still no luck.
|
Top
|
|
|
|
#175040 - 2007-03-28 07:12 PM
Re: Trying to write registry value
[Re: Arend_]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
Yep tried that I am really stuck as really need to get our login scripts up and running
|
Top
|
|
|
|
#175044 - 2007-03-28 07:58 PM
Re: Trying to write registry value
[Re: Arend_]
|
Soppy
Fresh Scripter
Registered: 2007-03-28
Posts: 7
|
Apronk and thank you to you all.
The only way I could fix it was to copy kix script into a new file and delete old one. The Script and CMD file worked perfectly. Somehow the .kix file I had must of got corrupt. What a pain but got there in the end.
|
Top
|
|
|
|
#175046 - 2007-03-28 08:02 PM
Re: Trying to write registry value
[Re: Soppy]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
|
Lol, thats why I only use notepad transfer to *nix and the stuff'll get ya tranfers from French windows as well
Glad thats solved though
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 382 anonymous users online.
|
|
|