dlevens Posted December 22, 2004 Share Posted December 22, 2004 I know this may seem odd, but I already know how to remove a registry key by making a registry file like this:test.regWindows Registry Editor Version 5.00[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]"DAEMON Tools-1033"="\"C:\\Program Files\\D-Tools\\daemon.exe\" -lang 1033"But what if I wanted to just remove a value? I tried something like this but cannot figure it outWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]-"DAEMON Tools-1033"="\"C:\\Program Files\\D-Tools\\daemon.exe\" -lang 1033"I know I can do this using reg.exe but since I am already importing a reg file using regedit /s test.reg was hoping to just do it there.Dennis Link to comment Share on other sites More sharing options...
Alanoll Posted December 22, 2004 Share Posted December 22, 2004 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]"DAEMON Tools-1033"=-Should do it.[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]Will delete the entire key "Run" and everything in it. the =- in the first code block, will narrow it down to ONE value. Just be sure not to also include the - in the path to the key Link to comment Share on other sites More sharing options...
dlevens Posted December 22, 2004 Author Share Posted December 22, 2004 Thanks,Good to know =- will remove a value. I already learned the hard way and killed my whole run key with[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]OOPSDennis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now