Re: Where to find a COMPLETE VBScript reference?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



.



Relevant Pages

  • Re: Where to find a COMPLETE VBScript reference?
    ... I would never go to MSDN ... >> Pocket reference book and other books, one which is called "The ULTIMATE ... > Scripting facilitates other operations. ... When used under different hosts, the objects, ...
    (microsoft.public.scripting.vbscript)
  • Re: Where to find a COMPLETE VBScript reference?
    ... Since ShellExecute is only applicable to 2000/ME+, and I would like it to be ... >> Pocket reference book and other books, one which is called "The ULTIMATE ... > Scripting facilitates other operations. ... When used under different hosts, the objects, ...
    (microsoft.public.scripting.vbscript)
  • Re: Where to find a COMPLETE VBScript reference?
    ... > points and then work through the left-hand hierarchical listing. ... >> Pocket reference book and other books, one which is called "The ULTIMATE ... > Scripting facilitates other operations. ... When used under different hosts, the objects, ...
    (microsoft.public.scripting.vbscript)
  • Re: Looking for a book about C with special criteria
    ... It takes you through a lot of detail about how computers ... a classic work used for reference. ... I wouldn't call TAoCP as mere reference books. ... I was just explaining that *some* programmers ...
    (comp.lang.c)
  • Re: Attn: Gordon: Your "Electronics for Dummies"
    ... They are best suited for an interactive web site that can ... Dead links are the scourge of the Internet. ... but not very good for current reference. ... I think economics demand that reference books die. ...
    (comp.robotics.misc)