Re: Where to find a COMPLETE VBScript reference?
- From: "Joe Earnest" <jearnest3-SPAM@xxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 07:02:17 -0600
Hi,
"David F" <David-White@xxxxxxxxxxxxx> wrote in message
news:uk7b%236KZFHA.3488@xxxxxxxxxxxxxxxxxxxxxxx
>I was looking for the SHELLEXECUTE command and it is not mentioned in any
>of
> the books I have.
> I have MS' "Windows 2000 Scripting Guide", O'Reilly's "VB.NET Language"
> Pocket reference book and other books, one which is called "The ULTIMATE
> VB.Net" (the emphasis on "ultimate" is mine...). None is mentioning that
> command. So who knows what else I am missing.
>
> Does anybody knows about a good, COMPLETE and well organized
> (alphabetically
> and categorized, etc. - which by definition excludes MSDN) reference
> source
> for both, VB and VBScript?
>
> Thanks,
>
> David
>
To put mayayana's response in a slightly different light --
Since VBS can operate under a number of different hosts and is designed to
call different COM objects to effect the substance of its operations, what
you're asking for just doesn't exist.
Scripting facilitates other operations. It is not intended to be an
all-encompassing language. When used under different hosts, the objects,
properties and methods of those hosts can be directly accessed. The number
of both OS and third-party COM objects constantly changes and is different
(to some degree) in both availability and specific implementation across
different OSs, as well as on differently configured host computers. The
script hosts also change in detail on a fairly continuous basis.
The standard, and probably best, approach, is to get the basic WSH CHM file
(for which Steve Burn has provided the link) for actual VBS operations and
inherent objects. Then look up the information on the COM objects and hosts
separately.
There are books and e-documents out there that "try" to encompass different
hosts or COM objects in different ways. A book on websites may include
website-specific scripting, one on servers may incorporate server-specific
scripting, etc. These types of references may consolidate some information
in a specialized area.
But things change. When you find COM references, they may likely be written
to explain access from another language -- VB, C++, JS, .Net, etc.
Here's the MSDN reference to Shell.Execute. It's under the IShellDispatch2
object, since it's not available in the earlier versions of Shell --
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/ishelldispatch2/shellexecute.asp
MSDN IShellDispatch2 listing --
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/ishelldispatch2/ishelldispatch2.asp
MSDN "Shell Objects for Scripting and Visual Basic" listing --
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/objects.asp
You're right that MSDN is difficult to work through. It's generally a waste
of time to search it. It's best thought of as a "sticky-note-pile" work in
progress that contains both outdated and very current information (sometimes
never implemented) covering so many languages, hosts and objects that when
you find something, its likely not on the host or in the language you
require. Very useful when needed, however, and probably the best
accumulation around. My approach to it is to find and store key entry
points and then work through the left-hand hierarchical listing.
Joe Earnest
.
- Follow-Ups:
- Re: Where to find a COMPLETE VBScript reference?
- From: David F
- Re: Where to find a COMPLETE VBScript reference?
- From: Steven Burn
- Re: Where to find a COMPLETE VBScript reference?
- References:
- Where to find a COMPLETE VBScript reference?
- From: David F
- Where to find a COMPLETE VBScript reference?
- Prev by Date: Re: Whether a file is opened using notepad or not
- Next by Date: Hellp with temp file
- Previous by thread: Re: Where to find a COMPLETE VBScript reference?
- Next by thread: Re: Where to find a COMPLETE VBScript reference?
- Index(es):
Relevant Pages
|