PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jason
Guest
Posts: n/a
 
      3rd Nov 2003
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.
 
Reply With Quote
 
 
 
 
Torgeir Bakken (MVP)
Guest
Posts: n/a
 
      3rd Nov 2003
Jason wrote:

> (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"=-



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


 
Reply With Quote
 
Torgeir Bakken (MVP)
Guest
Posts: n/a
 
      3rd Nov 2003
Jason wrote:

> (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"=-



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


 
Reply With Quote
 
Jason
Guest
Posts: n/a
 
      4th Nov 2003
Worked perfectly. Thank you!
 
Reply With Quote
 
 
 
 
Jason
Guest
Posts: n/a
 
      4th Nov 2003
Worked perfectly. Thank you!
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Basics 1 6th Nov 2007 09:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Customization 1 6th Nov 2007 09:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP General 1 6th Nov 2007 09:48 AM
edit "reg_sz" string in registry with a .reg file Jason Microsoft Windows 2000 Registry 2 4th Nov 2003 04:06 PM
edit "reg_sz" string in registry with a .reg file Jason Microsoft Windows 2000 Registry Archive 0 3rd Nov 2003 08:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.