>>>>>There is other way without using Scripting Host?
>>>>>In a computer without Scripting Host this will not work...
>>>>
>>>>You could always use the FFC's _registry.vcx Registry class instead. I'm not sure that key is supported uniformly across all OS platforms.
>>>
>>>I get an OLE Dispatch error. Using Windows 98.
>>
>>From the FFC registry class? There is no COM interface involved in the FFC class; it's all done with API calls, ...
>
>With the 2-line WSH sample posted previously.
Given that others have reported that the key doesn't exist in Win98, the OLE Dispatch error is caused by an invalid registry hive prefix - the key doesn't exist, so the method call barfs.