| | |
about registry key . . .
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
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:
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.Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
dim wsh set wsh = createobject("WScript.Shell") wsh.regwrite "HKCR\Folder\shell\Use Zip Help\command", "C:\Program Files\Zip Help\Zip Help.exe " & chr(34) & "%1" & chr(34), "REG_SZ"
![]() |
Similar Threads
- I want to manipulate the registry key values through a vb.net application (VB.NET)
- Making a registry key (Assembly)
- Prevent a registry key from deletion (C#)
- Problems with opening and editing a registry key with C++ (C++)
- deleting registry key for error code 19 (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Cutting Down String Split Overhead
- Next Thread: VB Syntax error appears in one page but not the other?
Views: 4980 | Replies: 10
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





