Login | |
|
 |
RE: correct syntax for registry write script - 5/1/2006 7:14:56 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
Have you tried anything yourself? This: WshShell.RegWrite "HKCU\ZipCode", "11223" Creates a String value in the root of the HKCU hive that has "11223" for it's data. So the question " how can i add another value to ZipCode let say "County" and assign value "Kings" to it, all under ZipCode?" does not make any sense. You cannot make a value that is a child of another value. Only keys and hives can have children. What exactly do you want? Do you want a key in the root of HKCU whose name is ZipCode and whose default value is the string 11223? In that case, it would make sense to say that you want to make another value in the ZipCode key with the name "County" and string data of "Kings". Is this what you want to do? What exactly have you tried? What exactly were the results from your attempts? Have you read the documentation for the .RegWrite method?
< Message edited by ebgreen -- 5/1/2006 7:16:57 AM >
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|