WSHOM.OCX is not really documented in itself.
The objects in it are documented in the Windows
Script Host CHM file, the main ones being WScript.Shell
(which has the Registry functions), Network, Shortcut
and Environment.
WScript.Shell is a poor way to access the Registry.
It only handles reading, writing and deleting single
values and keys. (On WinNT it can't delete a key
with subkeys and it can't be used to read values
with certain characters, such as a backslash.)
Also, WScript.Shell cannot enumerate keys or values.
There may also be cases where people have removed
WSHOM.OCX. Some network administrators consider the
Windows Script Host to be an unnecessary security risk.
There are Registry samples and classes available from
the VB expert sites that you can use. If you really want
to look into WScript.Shell see these script samples:
http://www.jsware.net/jsware/scripts.html
There's a download of WScript.Shell samples there.
--
--
JackFrost <ag**********@blueyonder.co.uk> wrote in message
news:cJ*******************@fe1.news.blueyonder.co. uk...
Hi all,
I recently read an article on the Windows Scripting Host Object Model
(WSHOM) in a back issue of Visual Studios Journal from 2000. As it gives
me a useful and easy way to access all of the registry instead of just the VB
and VBA registry branch, as GetSettings(...) does; I can't find any
useful documentation on it. There is a section on Microsoft's web site, but it
isn't the detailed listing of properties, methods and arguments that I
need. Also it's not listed in "VB & VBA in a nutshell". Can anyone help and
provide some documentation for this feature, or tell me where to find it,
as an extensive Google didn't reveal anything useful.
Regards,
JackFrost