Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11730

Re: the "execute" command, arguments and returning a result.Possible? If so, how ?

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: the "execute" command, arguments and returning a result.Possible? If so, how ?
Date 2017-07-24 08:29 +0200
Organization Aioe.org NNTP Server
Message-ID <ol4ce4$md9$1@gioia.aioe.org> (permalink)
References <okvc0l$d0p$1@gioia.aioe.org> <okvhl0$g8f$1@dont-email.me><okvpp1$16ak$1@gioia.aioe.org> <ol228t$fjl$1@dont-email.me>

Show all headers | View raw


Ulrich,

> but you will do need some kind of IPC Communication
> between the two independent scripts and therefor some
> external resources.

Nope and nope

As it turns out "execute" runs the code in the scope of the script/procedure
its called by, giving the executed code full acces to its "parents"
variables, as well as to any defined procedure in the script itself.

In other words, the contents provided to "execute" are run as if its part of
the script/procedure the command is run in.

Try it yourself. :-)

Regards,
Rudy Wieser





Ulrich Möller <knobbi38@arcor.de> schreef in berichtnieuws
ol228t$fjl$1@dont-email.me...
> Hi Rudy,
>
> Am 22.07.2017 um 16:28 schrieb R.Wieser:
> > IIRC I found that page too (did some googeling before posting the
question
> > here:-)  ), but discarded the suggestions because either they use
external
> > means (environment variables, registry, files) which do not clean
themselves
> > up, or are ment for usage within a special environment (webpage) (In my
case
> > I run the script by simply double-clicking it).
>
> but you will do need some kind of IPC Communication between the two
> independent scripts and therefor some external resources. You can wrap
> this things in a class which then automatically handles the cleanup of
> the used external resources.
> Here is another idea, which uses e.x. named pipes or a html document
> object which is made available in an external ie process.
>
https://stackoverflow.com/questions/10943464/inter-process-communication-usi
ng-vbscript
>
> I mean to remember that in some ibm scripting environments they uses
> specialized global com objects to accomplished this. They implemented
> something like a global session storage to hold data between several
> processes.
>
> Ulrich


Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 13:14 +0200
  Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-22 13:41 +0200
    Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 14:16 +0200
  Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-07-22 07:58 -0400
    Re: the "execute" command, arguments and returning a result.  Possible?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 14:29 +0200
  Re: the "execute" command, arguments and returning a result. Possible ? If so, how ? Ulrich Möller <knobbi38@arcor.de> - 2017-07-22 14:53 +0200
    Re: the "execute" command, arguments and returning a result. Possible? If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 16:28 +0200
      Re: the "execute" command, arguments and returning a result. Possible? If so, how ? Ulrich Möller <knobbi38@arcor.de> - 2017-07-23 13:49 +0200
        Re: the "execute" command, arguments and returning a result.Possible? If so, how ? "R.Wieser" <address@not.available> - 2017-07-24 08:29 +0200
  Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? JJ <jj4public@vfemail.net> - 2017-07-22 19:58 +0700
    Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 16:52 +0200
  Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Mayayana" <mayayana@invalid.nospam> - 2017-07-22 09:28 -0400
    Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-22 17:09 +0200
      Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Mayayana" <mayayana@invalid.nospam> - 2017-07-23 08:41 -0400
        Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-24 10:52 +0200
          Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Mayayana" <mayayana@invalid.nospam> - 2017-07-24 08:38 -0400
            Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-24 18:45 +0200
              Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-25 10:02 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-25 14:18 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-25 23:42 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-26 08:20 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-26 10:21 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-26 14:14 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-26 19:34 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-27 09:11 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-07-27 09:18 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-07-27 12:44 +0200
                Re: the "execute" command, arguments and returning a result.  Possible ?  If so, how ? "R.Wieser" <address@not.available> - 2017-08-01 23:21 +0200

csiph-web