BritishBulldog Posted October 24, 2004 Share Posted October 24, 2004 How can I delete a complete string in the registry?For example if I want to delete the '-site0' and all the keys under it.and yes I have searched but found nothing. Link to comment Share on other sites More sharing options...
paul3vanz Posted October 24, 2004 Share Posted October 24, 2004 this one had me stumped for ages!! i could add all the reg's in the world, but could i delete one? no!well anyways, all you have to do is add a minus (-) before the line of registry you want to delete.will post an example in a minute Link to comment Share on other sites More sharing options...
paul3vanz Posted October 24, 2004 Share Posted October 24, 2004 (edited) this will delete that entire -Site0 key:[-HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0]delete a value (will delete the line about local directory):[HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0]-"Local Directory"=dword:00000001delete contents of a value (will blank the local directory value):[HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0]"Local Directory"=-that should all work ok, hope this is of use to you.Whoops, fixed mistake as mentioned below, sorry! Edited October 25, 2004 by paul3vanz Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 24, 2004 Author Share Posted October 24, 2004 HiThanks but the first one did not work that would be the best one for me... deleting the complete -site1 key Link to comment Share on other sites More sharing options...
benners Posted October 24, 2004 Share Posted October 24, 2004 -[HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0] should be [-HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0] Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 24, 2004 Author Share Posted October 24, 2004 cheers for that it worked nowmade a note of all three.Thanks both of you Link to comment Share on other sites More sharing options...
maxXPsoft Posted October 24, 2004 Share Posted October 24, 2004 REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v MsnMsgr /fThat deletes the Run entry value after installing MSN so it won't start with Win. I use that in Runoncex after it's installed.Open a command prompt and type REG DELETE /?REG DELETE HKLM\Software\Macromedia\Sites\-Site0 /fDeletes the registry key -Site0 and its all subkeys and values/f Forces it. 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