• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Old school question...

jfall

Diamond Member
Does anyone know how to remove keys from the Windows Registry in a batch file. I'm trying to write a simple batch file to fix a virus, it requires removing a few keys from the registry, I want the batch file to do this, I know there is a way to do it, but I can't figure it out

Thanks
 
It is possible to delete keys with a .reg file.

Just put a - before the key you want to delete and that should do it. Make sure the Key you want to delete is the one in the braces, if you want to delete multiple keys use multiple [-] commands.

You have to put REGEDIT 4 at the start of the file so it know what verison you are writing for, if it's you own machine then you don't need to worry about it(it still ahs to be in the file otherwise the registry won't be updated.).


REGEDIT4

[-HKEY_LOCAL_MACHINE\SYSTEM\KEY_YOU_WANT_TO_DELETE]


PS. make sure you backup the registry before you start messing with it.

 
Back
Top