Login | |
|
 |
RE: Using oShell.RegWrite if full path does not exist - 6/18/2008 2:08:06 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
Not sure what you were doing, but it seems to write to anywhere I tell it to, without complaint. All you HAVE to make sure of is that you have the correct Root. For example, write to a key somewhere under HKLM\SYSTEM or \SOFTWARE, etc. This works: oShell.RegWrite "HKLM\SYSTEM\SooperTest\NewTest\Test1","testing123","REG_SZ" This does NOT work: oShell.RegWrite "HKLM\SYSTEM2\SooperTest\NewTest\Test1","testing123","REG_SZ" You can put almost anything after SYSTEM\ and it will work to create a key with that name under SYSTEM. But you can't use regwrite to create something like HKLM\SYSTEM2 or HKLM\MYSYSTEM.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
|
|