You might want to consider switching to using WMI's StdRegProv (Standard Registry Provider).
Google Usenet Advanced Search
http://groups.google.com/advanced_group_search
with all of the words: stdregprov
newsgroup: microsoft.public.scripting.*
for examples and links to the documentation...
For Win9x and NT4, you'll need to install the WMI core (comes standard with WinME/2000/XP).
Windows Management Instrumentation (WMI) CORE 1.5
http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/00...
For WMI access to remote machines (including the registry), you need WMI on both the local and remote machines.
--
Michael Harris
Microsoft.MVP.Scripting
--
Quote:
> Hello. I am currently trying to create a vbscript that used the regobj.dll
> to create a reg_Binary value. I know how to use the regtype constant, but
> doing so always ends up with a zero length vlaue with a Reg_None type. What
> am I missing? Is there a way to force a varient to be binary? Thanks!
> Code example below:
> strRegKey = "\HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Custom
> Forms\Read\"
> Set objReg = CreateObject("RegObj.Registry")
> Set objRegKey = objReg.RegKeyFromString(strRegKey)
> objRegKey.Values.Add "Testing","1101a1",rvBinary