add to a value, not replace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to add an extra path to the path on all my domain computers.

The computers allready have a path:
"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"
(Found in registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment] )

I need to add an extra path (c:\pctools) to that.

I tried with a .reg file, but I can't get it to add to what is allready in
the key - it replaces the old value with the new, but I need it to add the
new to the old

..reg file that sets the path to c:\pctools:
"REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment]
"Path"= hex(2):63,3a,5c,70,63,74,6f,6f,6c,73"

How can I get it to add my path instead of replacing it, via the .reg file ?
 
In microsoft.public.win2000.registry =?Utf-8?B?SmFuTGlzYmplcmc=?=
wrote:
Hi

I need to add an extra path to the path on all my domain
computers.

The computers allready have a path:
"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"
(Found in registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment] )

I need to add an extra path (c:\pctools) to that.

I tried with a .reg file, but I can't get it to add to what is
allready in the key - it replaces the old value with the new,
but I need it to add the new to the old
[ ]

I suggest pathman.exe from the Resource Kits
or look at this,

Editpath.exe
epath2.zip
http://internet.cybermesa.com/~bstewart/misctools.html
 
Back
Top