Thursday, September 22, 2005

Cool registry tip..

It is fairly common to use a reg file to get data into a registry. I always wondered if there was a simple way to remove keys from a registry without doing all that hand traversal (it does not help that the standard reg editor does not have bookmarks). Found this tip which I found useful..

add.reg:

[HKEY_LOCAL_MACHINE\SOFTWARE\MicrosoftWindows NT\CurrentVersionImage File Execution Options\lodctr.exe]
"Debugger"="windbg.exe"

remove.reg (note the - after [ and before HKEY...):

[-HKEY_LOCAL_MACHINE\SOFTWARE\MicrosoftWindows NT\CurrentVersionImage File Execution Options\lodctr.exe]
"Debugger"="windbg.exe"

1 comment:

RK said...

Adey. You could start a productivity training institute : -)