Jump to content

remove keys from a .reg file


Recommended Posts

how can i remove a REG_SZ key with a .reg file?? i'll try to explain myself: the key

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]"NeverShowExt"=""

it's used to not display the extension for .url files and i want to remove it. i know using [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut] from a reg file causes the hive to be removed but i only want to remove the REG_SZ, someone can help me??

Link to comment
Share on other sites


how can i remove a REG_SZ key with a .reg file?? i'll try to explain myself: the key
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]

"NeverShowExt"=""

it's used to not display the extension for .url files and i want to remove it. i know using [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut] from a reg file causes the hive to be removed but i only want to remove the REG_SZ, someone can help me??

Simple you put the minus next the value like this

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]

"NeverShowExt"=-

Enjoy! :)

Felix

Link to comment
Share on other sites

thanks both @Alanoll and @`Felix` :)

i'll try to apply the same knowledge to windows startup applications to prevent them from run :rolleyes:

edited: here are my keys

Windows Registry Editor Version 5.00

;shows url, pif, shs, scf file extensions

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]"NeverShowExt"=-

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\piffile]

"NeverShowExt"=-

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SHCmdFile]

"NeverShowExt"=-

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ShellScrap]

"NeverShowExt"=-

Windows Registry Editor Version 5.00

;remove items from startup

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]"CTFMON.EXE"=-

"MsnMsgr"=-

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]

"HotKeysCmds"=-

"IgfxTray"=-

"NeroFilterCheck"=-

Edited by SiMoNsAyS
Link to comment
Share on other sites

In all of the above, you have missed out inverted commas for the reg_sz value. In other words, wrap even the minus sign around inverted commas.

Make

"MsnMsgr"=-

to look like

"MsnMsgr"="-"

as @Alanoll and @`Felix` said if what i want it's remove the key it has to look like

"MsnMsgr"=-

not like

"MsnMsgr"="-"

that will create a key "-" and it won't be removed

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...