Re: Where to find a COMPLETE VBScript reference?



You can use the Run method of WScript.Shell.
It does about the same thing and probably also
calls Shell32.dll ShellExecute behind the scenes.
The main difference is that you run an EXE, with
or without a command line, rather than "running"
a file with a "verb".
It sounds like Shell.run will work for your needs,
(and it's documented in the WSH help files that
were linked earlier), but VBS can only communicate
with a COM interface, so you'll need to consider that in
setting up the C++ EXE.
--
--
David F <David-White@xxxxxxxxxxxxx> wrote in message
news:#slK$YWZFHA.3824@xxxxxxxxxxxxxxxxxxxxxxx
> Many thanks for the very detailed response.
>
> Since ShellExecute is only applicable to 2000/ME+, and I would like it to
be
> applicable to all Windows since 95 (or 98 at least), I should revise my
> question. ShellExecute was offered to me by someone that apparently did
not
> know the limitation of its documentation and portability.
> My original problem is as follows:
> I have an application written in pure C++. I need to add to it a GUI. I
was
> thinking on using HTA technology for the GUI. My understanding is that I
> would need to use in the web page VBScript to interact with the .EXE
> (written in C++). By interact I mean either invoke from HD or communicate
> with the .exe that is running in the memory in the background already.
That
> interface should be able to pass parameters and receive results from the
> .EXE.
>
> That is how ShellExecute came up. So my question then revert to that
> original question.
>
> Thanks again,
>
> David
>
>
> "mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx> wrote in message
> news:mZwme.10246$uR4.6387@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > It's hard to find comprehensive coverage because
> > there are various objects that are not strictly part of
> > VBScript or WSH. WSHShell, for instance, was thrown
> > in with WSH but is not a documented object for
> > VBScript, so it doesn't show up in the VBScript
> > CHM file. And Internet Explorer doesn't show up
> > as part of either system, for that matter,
> > even though it's scriptable. So it's not clear where to
> > draw the line. If you want to script, say, Outlook or Word
> > then you'd also want those docs, but the Word and
> > Outlook object models are not part of VBS or WSH
> > so they're not included with the VBS or WSH docs.
> > You just have to know about them and hunt down the
> > docs.
> >
> > ShellExecute is only in 2000/ME+ and is actually part
> > of the Shell.Application object. Shell.Application should
> > probably be documented as part of VBS and the WSH
> > but for some reason it's not officially included.
> >
> > I think that MS originally just documented a few things
> > that they thought people would use. VBScript started as
> > a limited webpage scripting language and gradually
> > got expanded to include system admin. functionality.
> > That development doesn't seem to have been planned out.
> > It just happened gradually out of necessity. Over time more
> > scriptable objects were developed and more scripting was
> > built into Windows, but it wasn't always officially connected
> > with VBS or WSH. Only the objects like FSO and Dictionary,
> > from SCRRUN.DLL, are officially part of VBScript.
> >
> > The ShellFolderView object, for instance, is a good
> > example of a usable object that just doesn't happen to be
> > officially considered to be part of VBS or WSH. There is very
> > sparse documentation for it. It's scriptable and, except in XP where
> > MS has cut off access to the system folder.htt file, the WebView
> > is designed to be custom scriptable by the end user through the
> > ShellfolderView object. But MS never really told anyone how to
> > do that and they seem to have been ambivalent about making it
> > available at all.
> > (The ShellFolderView object itself is an awkward and somewhat
> > limited object model to work with. If it wasn't for articles written by
> > Dino Esposito the ShellFolderView might still be unknown,
> > despite the fact that Windows has had a menu in every folder
> > since 98 that offers the option to "Customize This Folder"
> > by editing the ShellFolderView script in the system folder.htt
> > file.)
> >
> > --
> > --
> > David F <David-White@xxxxxxxxxxxxx> wrote in message
> > news:uk7b#6KZFHA.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
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: Where to find a COMPLETE VBScript reference?
    ... Since ShellExecute is only applicable to 2000/ME+, and I would like it to be ... would need to use in the web page VBScript to interact with the .EXE ... > VBScript or WSH. ... If you want to script, say, Outlook or Word ...
    (microsoft.public.scripting.vbscript)
  • Re: Where to find a COMPLETE VBScript reference?
    ... VBScript or WSH. ... VBScript, so it doesn't show up in the VBScript ... If you want to script, say, Outlook or Word ... The ShellFolderView object, for instance, is a good ...
    (microsoft.public.scripting.vbscript)
  • Re: What is the difference between VBS/WSH?
    ... My specific question is wether or not WSH can be used to interact with the ... WSH is a script host that can run/interpret many different script languages, VBScript, JScript, Perl etc. provided the script support package is installed. ... For some tasks you don't even need Access installed, just the data access DLLs which are on most Windows machines anyway or can be added via the MDAC install package. ...
    (microsoft.public.scripting.vbscript)
  • OU member
    ... I'm searching for a script in WSH / VBScript to find in wich Organisational ...
    (microsoft.public.scripting.wsh)
  • Re: VB6 Help Needed
    ... You mention "VB script", are you using VB 6 or VBScript? ... you should be able to use the Shell function or the ShellExecute ... "Puneet" wrote in message ...
    (comp.programming)

Quantcast