toad38
-
Total Posts
:
41
- Scores: 0
-
Reward points
:
0
- Joined: 9/4/2008
-
Status: offline
|
Build Registry Path
Friday, November 18, 2011 2:51 AM
( permalink)
Does anyone have an example how to build a regitry path. For example, assuming part or all of the following path does not exist, I would want a function that is smart enough to build the missing keys and create a new value and set the value data. fnCreateRegPath "HKLM\SOFTWARE\NewKey\NewSubKey\NewSubKey\NewSubKey\NewSubKey" "New Value", "NewValueData" "NewValueDataType" I'm also thinking it would delete the value and re-create the value each time (reason being: the value data type (string, DWORD, etc.) could be incorrect and recreating the value would resolve this)
|
|
|
|
ebgreen
-
Total Posts
:
8219
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:Build Registry Path
Friday, November 18, 2011 3:22 AM
( permalink)
Search the forum for SmartRegWrite
|
|
|
|
toad38
-
Total Posts
:
41
- Scores: 0
-
Reward points
:
0
- Joined: 9/4/2008
-
Status: offline
|
Re:Build Registry Path
Monday, November 21, 2011 4:44 AM
( permalink)
That is good information ebgreen! Thank you. Here is the link for others: http://www.visualbasicscript.com/tm.aspx?m=61419 I'm curious though. This function only writes STRING values to the registry. How difficult would it be to expand this to optionally write DWORD and BINARY values? I like to think I'm pretty good at vbscript, but I suppose I'm not following this particular function well enough to feel comfortable updating it.
|
|
|
|
ebgreen
-
Total Posts
:
8219
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:Build Registry Path
Monday, November 21, 2011 6:14 AM
( permalink)
I don't imagine it would be particularly difficult. Just pass in another parameter that would control the type.
|
|
|
|