edit "reg_sz" string in registry with a .reg file

J

Jason

I need to know what syntax to use in a .reg file to remove
a specific string value from the registry. I can delete
the reference manually. An example of one of the
references is as follows...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\SharedDLLs\
"C:\Program Files\Common Files\Symantec
Shared\SSC\LDDateTm.ocx"


I have tried removing it as you normally would a value but
have had no success. An example of what didn't work
follows...
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\SharedDLLs]
"C:\Program Files\Common Files\Symantec
Shared\SSC\LDDateTm.ocx"=-

Any help would be greatly appreciated. Thanks.
 
T

Torgeir Bakken (MVP)

Jason said:
(snip)
I have tried removing it as you normally would a value but
have had no success. An example of what didn't work
follows...
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\SharedDLLs]
"C:\Program Files\Common Files\Symantec
Shared\SSC\LDDateTm.ocx"=-

Any help would be greatly appreciated. Thanks.

Hi

In a registry file, one backslash in value names/data is a control character,
so to get one "text" backslash, you need to use two. Export a value with
backslash in it name/data to a registry file to see what you end up with in the
file.

This should work better:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs]
"C:\\Program Files\\Common Files\\Symantec Shared\\SSC\\LDDateTm.ocx"=-
 

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