SiMoNsAyS Posted August 3, 2004 Share Posted August 3, 2004 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 More sharing options...
Alanoll Posted August 3, 2004 Share Posted August 3, 2004 "NeverShowExt"=- Link to comment Share on other sites More sharing options...
`Felix` Posted August 3, 2004 Share Posted August 3, 2004 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 thisWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]"NeverShowExt"=-Enjoy! Felix Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted August 3, 2004 Author Share Posted August 3, 2004 (edited) thanks both @Alanoll and @`Felix` i'll try to apply the same knowledge to windows startup applications to prevent them from run edited: here are my keysWindows 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 August 3, 2004 by SiMoNsAyS Link to comment Share on other sites More sharing options...
prathapml Posted August 3, 2004 Share Posted August 3, 2004 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"="-" Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted August 3, 2004 Author Share Posted August 3, 2004 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 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