[windows2000] Re: Reg comand

  • From: "Sorin Srbu" <sorin.srbu@xxxxxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Tue, 7 Feb 2006 17:17:51 +0100

RE: [windows2000] Reg comand"To many command-line parameters."


 -----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Sullivan, Glenn
Sent: Tuesday, February 07, 2006 5:05 PM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: Reg comand


Try this:
"%programfiles%\tools\reg add ""HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown"" /v bEFIPrintMe /t REG_DWORD /d 0 /f"

Glenn Sullivan, MCSE+I MCDBA
David Clark Company Inc.





----------------------------------------------------------------------------
----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of Sorin Srbu
Posted At: Tuesday, February 07, 2006 10:55 AM
Posted To: Windows 2000
Conversation: [windows2000] Re: Reg comand
Subject: [windows2000] Re: Reg comand


"I will have to go ahead and disagree with you", as said in Office Space.
8-]

I have the below set-statement in the script:

    set PATHTOFILES=c:\program files\tools\

Then comes

    %PATHTOFILES%reg.exe add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t REG_DWORD /f

Which produces the below in a CLI-window:

c:\program files\tools\reg.exe add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t REG_DWORD /f

'c:\program' is not recognized as an internal or external command,
operable program or batch file.


If I instead use

    "%PATHTOFILES%reg.exe" add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t REG_DWORD /f

I get

    "c:\program files\tools\reg.exe" add "HKLM\SOFTWARE\Adob
e\Acrobat Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t
REG_DWORD
/f

To many command-line parameters.


IMHO "" are necessary every time you have a path with spaces in it, no
matter if you have a set-statement or not. "c:\program files" includes a
space in all US English versions of WinXP Pro I know of.






-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Schneider, Robert @
ILEX
Sent: Tuesday, February 07, 2006 4:38 PM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Reg comand


Sorin,

The path to reg add..

"%programfiles%\tools\reg" add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t REG_DWORD /f

The path to reg.exe should not require quotes. I don't use them and it
works.

Try: %programfiles%\tools\reg add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /t REG_DWORD /d 0 /f



Bob



Bob Schneider

L3 Communications/ILEX Systems

IAVA Support

732-530-8444 x3503

mailto:robert.schneider@xxxxxxxxxx







-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Sorin Srbu
Sent: Tuesday, February 07, 2006 9:30 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: Reg comand



The quotes on the reg.exe-part or the hklm-part?



For the reg.exe-part I must use qoutes as there are spaces in the path. The
quotes on the hklm-part looks like yours.





-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Schneider, Robert @
ILEX
Sent: Tuesday, February 07, 2006 3:19 PM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Reg comand

Sorin,

Sorry for any confusion, the placement of the quotes. See the string I use
below, shows the placement that works for me.

Bob



Bob Schneider

L3 Communications/ILEX Systems

IAVA Support

732-530-8444 x3503

mailto:robert.schneider@xxxxxxxxxx







-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Sorin Srbu
Sent: Tuesday, February 07, 2006 9:13 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: Reg comand



How do you mean incorrect? They look the same to me. Or do you mean they're
in an incorrect place?





-----Original Message-----
From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Schneider, Robert @
ILEX
Sent: Tuesday, February 07, 2006 2:22 PM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Reg comand

Reg command,
 It looks like the quotes are incorrect. The below batch strings are what I
have been using successfully.
Check at the command prompt: reg /? Or reg add /? For help.
I hope this helps..
Good luck
Bob

----------------------------------------------------------------------------
--------------------------------
@echo off
setlocal
set PATHTOFILES=%temp%\Project_scripts\Config

REM *** NoNameReleaseOnDemand Enable ********
%PATHTOFILES%\reg add
"HKLM\System\CurrentControlSet\Services\NetBT\Parameters" /v
NoNameReleaseOnDemand /t REG_DWORD /d 1 /f

----------------------------------------------------------------------------
----------------------------------------------------------------

Bob Schneider
L3 Communications/ILEX Systems
IAVA Support
732-530-8444 x3503
mailto:robert.schneider@xxxxxxxxxx



 -----Original Message-----
From:   windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx]  On Behalf Of Sorin Srbu
Sent:   Tuesday, February 07, 2006 7:06 AM
To:     Windows2000 Mailing List Windows2000 Mailing List
Subject:        [windows2000] Reg comand

Hi all,

I'm trying to deploy the Acrobat v7.0.5 update to our domain using a script
and a GPO. After the deployment itself, I want to add certain registry keys
to the computers that have had this update installed. The key below is an
example (line may be wrapped):

"%programfiles%\tools\reg" add "HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\FeatureLockdown" /v bEFIPrintMe /d 0x00000000 /t REG_DWORD /f

Problem is that I get an error "To many command-line parameters.".

How can it be too long??

The "Tools"-folder on the local computer contains the reg.exe, but I get the
same error. I also ried running the reg.exe command from the dfs-share and
get the same error there.

Am I hitting a hard-coded limit on the path-lenght or something here? If so,
could you suggest any other way to do this?

TIA.



BW,

Sorin

# Sorin Srbu, Systems Engineer  Web: http://pharm.orgfarm.uu.se/pc/
# Dept of Medicinal Chemistry,  Phone: +46 (0)18-4714482 >3 signals> GSM
# Div of Org Pharm Chem,                Mobile Phone: +46 (0)701-718023
# Box 574, Uppsala University,  Fax: +46 (0)18-4714474
# SE-751 23 Uppsala, Sweden     Visit: BMC, Husargatan 3, D5:512b
#
# Public PGP key available on request.
#
# ()  ASCII ribbon campaign - Against html E-mail
# /\
#
# Harmless tagline follows:
#
# Bla bla bla...



*****************************
New Site from The Kenzig Group!
Windows Vista Links, list options
and info are available at:
http://www.VistaPop.com
*****************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: