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


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

Re: wshshell.run a shortcut and waiting for it to finish. How ?

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: wshshell.run a shortcut and waiting for it to finish. How ?
Date 2020-11-18 18:48 +0100
Organization Aioe.org NNTP Server
Message-ID <rp3mp7$1n18$1@gioia.aioe.org> (permalink)
References (1 earlier) <1dgatp0jyrk48.1utdkn8x5nbwt.dlg@40tude.net> <rou962$1tmc$1@gioia.aioe.org> <gea4f2kekg3o.36ry2qaydiaa$.dlg@40tude.net> <rp382h$1rta$1@gioia.aioe.org> <rp392k$kdd$1@dont-email.me>

Show all headers | View raw


Mayayana,

>   Why don't you just go direct?

I did.   I now check for a .lnk extension and if its there extract the 
target from the shortcut and than run that. It works.

> If I had to guess I'd say the LNK probably calls Explorer to
> do the job, in which case Explorer would return immediately.

I don't know what gets called to handle the shortcut (User32.dll has got 
several "ShellExecute" functions available), but I assumed something like 
the last part, yes.

> I'm not certain about that, but I don't see any sense going
> indirect in the first place.

Somethimes a shortcut is needed to be able to provide arguments to a program 
that you want to have run (on startup or winddown).

Regards,
Rudy Wieser

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


Thread

wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-15 09:14 +0100
  Re: wshshell.run a shortcut and waiting for it to finish.  How ? JJ <jj4public@gmail.com> - 2020-11-16 21:46 +0700
    Re: wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-16 17:10 +0100
      Re: wshshell.run a shortcut and waiting for it to finish.  How ? JJ <jj4public@gmail.com> - 2020-11-18 20:10 +0700
        Re: wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-18 14:37 +0100
          Re: wshshell.run a shortcut and waiting for it to finish.  How ? "Mayayana" <mayayana@invalid.nospam> - 2020-11-18 08:54 -0500
            Re: wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-18 18:48 +0100
          Re: wshshell.run a shortcut and waiting for it to finish.  How ? JJ <jj4public@gmail.com> - 2020-11-19 21:52 +0700
            Re: wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-19 19:20 +0100
              Re: wshshell.run a shortcut and waiting for it to finish.  How ? JJ <jj4public@gmail.com> - 2020-11-21 15:18 +0700
                Re: wshshell.run a shortcut and waiting for it to finish.  How ? "R.Wieser" <address@not.available> - 2020-11-21 12:02 +0100

csiph-web