October 24, 200421 yr 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.
October 24, 200421 yr 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
October 24, 200421 yr 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, 200421 yr by paul3vanz
October 24, 200421 yr Author HiThanks but the first one did not work that would be the best one for me... deleting the complete -site1 key
October 24, 200421 yr -[HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0] should be [-HKEY_LOCAL_MACHINE\Software\Macromedia\Sites\-Site0]
October 24, 200421 yr Author cheers for that it worked nowmade a note of all three.Thanks both of you
October 24, 200421 yr 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.
Create an account or sign in to comment