How suppress a string value from a key in the registry ?

M

MoiMeme

Hi,

I have had to delete a value from key in the registry to correct a software
problem.
Now I would like to save that procedure as a regfile to apply should the
problem appear on another PC or after reinstall.

How can do this in a regfile ?

say the key is

HKCU\Software\MyCompany\MysProgram\ErrorKey\

and it contains the erroneous string value "that will cause problems"

What I want is delete this "that will cause problems" without removing
anything else.

I know I can delete a key by precding it with a -

What about a value ?

TIA !!!
 
R

Rick \Nutcase\ Rogers

Hi,

[HKCU\Software\MyCompany\MysProgram\ErrorKey]
"that will cause problems"=-

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org
 
M

MoiMeme

So simple ! the - after rather than at teh beginning !
Thanks for so fast a response !
Already have made my reg file and tested with a dummy key + value : works
nice !
Thanks again

Rick "Nutcase" Rogers said:
Hi,

[HKCU\Software\MyCompany\MysProgram\ErrorKey]
"that will cause problems"=-

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org

MoiMeme said:
Hi,

I have had to delete a value from key in the registry to correct a
software problem.
Now I would like to save that procedure as a regfile to apply should the
problem appear on another PC or after reinstall.

How can do this in a regfile ?

say the key is

HKCU\Software\MyCompany\MysProgram\ErrorKey\

and it contains the erroneous string value "that will cause problems"

What I want is delete this "that will cause problems" without removing
anything else.

I know I can delete a key by precding it with a -

What about a value ?

TIA !!!
 
R

Ramesh, MS-MVP

Additional Info:

Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved


REG Operation [Parameter List]

Operation [ QUERY | ADD | DELETE | COPY |
SAVE | LOAD | UNLOAD | RESTORE |
COMPARE | EXPORT | IMPORT ]

Return Code: (Except of REG COMPARE)

0 - Succussful
1 - Failed

For help on a specific operation type:

REG Operation /?

Examples:

REG QUERY /?
REG ADD /?
REG DELETE /?
REG COPY /?
REG SAVE /?
REG RESTORE /?
REG LOAD /?
REG UNLOAD /?
REG COMPARE /?
REG EXPORT /?
REG IMPORT /?


How To Add, Modify, or Delete Registry Subkeys and Values by Using a
Registration Entries (.reg) File:
http://support.microsoft.com/kb/310516

How to backup the Windows XP Registry?:
http://windowsxp.mvps.org/registry.htm

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


MoiMeme said:
So simple ! the - after rather than at teh beginning !
Thanks for so fast a response !
Already have made my reg file and tested with a dummy key + value : works
nice !
Thanks again

Rick "Nutcase" Rogers said:
Hi,

[HKCU\Software\MyCompany\MysProgram\ErrorKey]
"that will cause problems"=-

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org

MoiMeme said:
Hi,

I have had to delete a value from key in the registry to correct a
software problem.
Now I would like to save that procedure as a regfile to apply should the
problem appear on another PC or after reinstall.

How can do this in a regfile ?

say the key is

HKCU\Software\MyCompany\MysProgram\ErrorKey\

and it contains the erroneous string value "that will cause problems"

What I want is delete this "that will cause problems" without removing
anything else.

I know I can delete a key by precding it with a -

What about a value ?

TIA !!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top