Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to edit a Registry for NT4?

Status
Not open for further replies.

jmreinwald

Technical User
Jun 3, 2002
46
US
Hi All,

I have no idea what in the world happened, but there are a ton of "bad" references in my registry that point to items in the Recycle Bin (I think). The majority of them are DefaultIcons paths in HKEY_CLASSES_ROOT, so it's not really hurting anything as far as I can tell. Every single one of them starts the same way. As an example, my HKCR\rtffile\DefaultIcon path is as follows:

"D:\RECYCLERS\S-1F41~1\DC41 Files\Windows NT\Accessories\WORDPAD.EXE,1"

Obviously the "RECYCLERS\S-1F41~1\DC41" should be replaced with "Program". I have been basically finding one, F3'ing through and editing as I go along. Since I know what is "bad" and what needs to go there, is there some sort of scripting I can do, sort of a foreach or something?

Thanks in advance,
Joe
 
I've had various attempts at something like this (eg, used registry editing tool in old version of cleansweep - its got a multiple find/replace facility - I think I'd advise staying with what you're doing (safer inspecting all entries) - its easy to replace a raft of things you didn't want to!

Suppose you could export everything, edit the export file and import back in.. no stick with slow method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top