Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- From: Ron Sochanski <RonSochanski@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Apr 2007 08:32:01 -0700
"Pegasus (MVP)" wrote:
The process you described involved exporting from the registry and then
"Ron Sochanski" <RonSochanski@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2A7CA875-87BF-4A8A-A896-F03EE962DFFA@xxxxxxxxxxxxxxxx
message
"Pegasus (MVP)" wrote:
"Ron Sochanski" <RonSochanski@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
sonews:61232D85-3056-4240-B8AD-A3269D3E8E23@xxxxxxxxxxxxxxxx
Hello. How can a REG_SZ registry value be modified using a .reg file,
ifas
to append a string to the original data of the value? In other words,
dataa
Windows registry key [HKLM/.../ABCDE] has a REG_SZ value Value1 where
Value1's data is equal to "String1", then how can I modify Value1's
usingto
be "String1"+"String2" (i.e., "String1" concatenated with "String2")
file,aThat would only work if the value's original data is identical on both
.reg file, where Value1's data is not known? Thank you.
You have to extport the value, add your string to its data, then
import it into the registry.
source and target machine. If the value's original data on the target
machine differs from that of the source machine in the distributed .reg
the value's original data on the target machine would essentially be lost.using a
What's needed here is dynamically determining a value's original data
.reg file. Can this be done? Thank you.
If you run the process I described on the target machine
then it will work because it will extract the existing data
on that machine, no matter what it is.
subsequently importing into the registry. The only way I know of to export
is to do so manually, i.e., via manually running regedit and then exporting.
On the target machine, therefore, I'd need to manually export, manually edit
the .reg file that was created and then apply the .reg file. I desire to
have a .reg file that has already been created which I could copy to the
target machine and simply run. I don't want to export manually on the target
machine. If there is an automated method to accomplish this, then please
advise.
.
- Follow-Ups:
- Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- From: Pegasus \(MVP\)
- Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- References:
- Re: Append to an Existing REG_SZ Value in Registry Using a .Reg File
- From: Pegasus \(MVP\)
- Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- From: Pegasus \(MVP\)
- Re: Append to an Existing REG_SZ Value in Registry Using a .Reg File
- Prev by Date: BSOD/Error Message
- Next by Date: Re: error
- Previous by thread: Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- Next by thread: Re: Append to an Existing REG_SZ Value in Registry Using a .Reg Fi
- Index(es):
Relevant Pages
|