| |
JediK9
Posts: 13
Score: 0
Joined: 5/19/2004
From: Australia
Status: offline
|
Hi Everyone, Just wondering if anyone has any experience with RegObj.dll .. Looks like a great tool, but has pretty poor documentation .. Anyway ... I'm trying to do this: Set objRegObj = WScript.CreateObject("RegObj.Registry") Set objRemoteRegistry = objRegObj.RemoteRegistry("PC_NAME_HERE") Set objValue = objRemoteRegistry.RegKeyFromString("\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft") DataValue = 101010101 objValue.Values.Add "a", DataValue, 3 ' 1 = REG_SZ, 2 = REG_EXPAND_SZ, 3 = Binary ... However, no matter what format I set DataValue as, I keep getting a "Type Mismatch" error. I can get String data to be written without any problem, just not BINARY data. I've put in the following different data formats: DataValue = "10101" DataValue = 10101 DataValue = Array("1","0","1","0") DataValue = Array(1,0,1,0) but NOTHING seems to work .. Anyway, thanks for any help you can offer .. Cheers' JediK9
|
|