473,509 Members | 11,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WSHOM.ocx Documentation and help

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
Jul 17 '05 #1
2 11211
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

Jul 17 '05 #2
Cheers for that, I'll look it up.

I already have a way of accessing the registry through the cRegistry.cls
from VBAccelerator (www.vbaccelerator.com). But was hoping that there might
be a way that didn't include having to package it into a program or as a
separate dll.

The ability to add scripting to a VB program, so that I can extend it's
functionality at a later date without needing to recompile was interesting
(I know there will be a hit on performance, but if it runs barely adequately
on this generation of machines, it should be fine on the next). As we are
going to be finally moving to VB.Net soon (If I keep kicking my boss hard
enough) I'd like to limit the number of platforms that the team has to
maintain, so adding scripting now might be an advantage.

JackFrost
"mayayana" <ma**********@mindYYspring.com> wrote in message
news:sz******************@newsread3.news.atl.earth link.net...
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


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1360
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft...
4
1888
by: PaulThomas | last post by:
WHY does the .Net Documentation show http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebsessionstatehttpsessionstatememberstopic.asp .NET Framework Class...
12
2855
by: Fredrik Olsson | last post by:
Hello. For Java there is javadac, for Obj-C headerdoc2html, for C doxygen, and even for good old VB 6 there is VBDox. But I have found no suitable tool for documenting my .net code to get...
0
1367
by: Christine | last post by:
I am developing an Access Application for distribution to many users, who will probably have different versions of Windows installed. I have recently discovered iWshRunRimeLibrary, the windows...
97
4286
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
34
2878
by: nicolasfr | last post by:
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated...
5
1337
by: kbutterly | last post by:
Good morning all, I have a weird problem with my VS 2005 Documentation. When I open the help file through Start -Visual Studion 2005 ->Visual Studio 2005 Documentation, I get what appears to be...
9
1786
by: Mythran | last post by:
Can someone please point me to some articles explaining how to convert the code comment xml files into MSDN documentation? I've made some modifications to Enterprise Library and would like to...
2
1528
by: =?Utf-8?B?U2NvdHRSYWREZXY=?= | last post by:
I'm creating a doc project for my c# program. I've done this before but this time sonething is wrong. I build my doc project and is succeeds but when I open the help file, there is no documentation...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.