Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > help with reg add fuction

Reply
Thread Tools Display Modes

help with reg add fuction

 
 
pete0085
Guest
Posts: n/a

 
      08-24-2009
Looking for some help on a reg add batch file. I am not sure what paramaters
need to be corrected.

It's simple - enabled the analysis toolpak for excel.

reg add "hkcu\software\microsoft\office\11.0\excel\options "\ /v OPEN /t
REG_SZ /d /r "C:\Program Files\Microsoft
Office\OFFICE11\Library\Analysis\ANALYS32.XLL" /f

The /r is part of the data value and that is where I am running into issues.


 
Reply With Quote
 
 
 
 
jford
Guest
Posts: n/a

 
      08-25-2009
reg add "hkcu\software\microsoft\office\11.0\excel\options " /v OPEN /t REG_SZ
/d "C:\Program Files\Microsoft Office\OFFICE11\Library\Analysis\ANALYS32.XLL"
/f

you have a slash outside the quote after \options"\, remove that. you also
have a "/r" which in my instance of reg isn't valid. "/d" is the value data
assigned to the value name of "open"

"pete0085" wrote:

> Looking for some help on a reg add batch file. I am not sure what paramaters
> need to be corrected.
>
> It's simple - enabled the analysis toolpak for excel.
>
> reg add "hkcu\software\microsoft\office\11.0\excel\options "\ /v OPEN /t
> REG_SZ /d /r "C:\Program Files\Microsoft
> Office\OFFICE11\Library\Analysis\ANALYS32.XLL" /f
>
> The /r is part of the data value and that is where I am running into issues.
>
>

 
Reply With Quote
 
Zaphod Beeblebrox
Guest
Posts: n/a

 
      08-26-2009

"pete0085" <> wrote in message
news:F25F5DF0-EBF8-4220-8E1F-...
> Looking for some help on a reg add batch file. I am not sure what
> paramaters
> need to be corrected.
>
> It's simple - enabled the analysis toolpak for excel.
>
> reg add "hkcu\software\microsoft\office\11.0\excel\options "\ /v OPEN
> /t
> REG_SZ /d /r "C:\Program Files\Microsoft
> Office\OFFICE11\Library\Analysis\ANALYS32.XLL" /f
>
> The /r is part of the data value and that is where I am running into
> issues.
>
>

as jford mentioned, you have a slash outside the quote after
\options"\ that should be removed.

As to the /r being a part of the data, you need to quote the entire
value since it has spaces, and since you want to include quotes within
the data the quotes need to be prefixed with backslashes, like so:

reg add "hkcu\software\microsoft\office\11.0\excel\options " /v OPEN /t
REG_SZ /d "/r \"C:\Program Files\Microsoft
Office\OFFICE11\Library\Analysis\ANALYS32.XLL\"" /f

Hope this helps.

--
Zaphod

Voted "Worst Dressed Sentient Being in the Known Universe" for seven
years in a row.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
search fuction on sharepoint sbs 2k3 standard. Dan Moore Windows Small Business Server 2 06-09-2004 04:51 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59