about registry key . . .

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2009
Posts: 1
Reputation: ROYALPINTO has a little shameless behaviour in the past 
Solved Threads: 0
ROYALPINTO ROYALPINTO is offline Offline
Newbie Poster

Re: about registry key . . .

 
-2
  #11
Apr 22nd, 2009
Originally Posted by Comatose View Post
Adding it is a lot easier than deleting. Namely, because deleting usually requires that the key be empty, so that it can not contain any sub-keys or values. Adding The key/Value is pretty easy with scripting, like so:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. dim wsh
  2. set wsh = createobject("WScript.Shell")
  3. wsh.regwrite "HKCR\Folder\shell\Use Zip Help\command", "C:\Program Files\Zip Help\Zip Help.exe " & chr(34) & "%1" & chr(34), "REG_SZ"
The deleting process however, will require you to enumerate the key you want to delete (for both sub-keys and values) delete all of those, and then delete the key in question. When I get home from work I'll post the code for enumeration and deleting.
HI I CREATED THE REG KEY FROM THE ABOVE CODE NOW I WANT TO GET THE PATH ADDRESS OF THE FOLDER WERE I RIGHT CLICKED .PLEASE REPLY THANKS IN ADVANCE
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4980 | Replies: 10
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC