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


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

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-19 19:20 +0100
Organization Aioe.org NNTP Server
Message-ID <rp6d22$e3$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> <10p18lzpyi8ab$.10bwifvvxe5z5$.dlg@40tude.net>

Show all headers | View raw


JJ,

> Could you provide the exact detail on how the file is executed
> and what files are involved?

At some point I created a test script containing the below :

- - - -
set oSH = CreateObject("wscript.shell")
call oSH.Run(""""& "hello.vbs.lnk" &"""",1,true)
- - - -

the "hello.vbs.lnk" is ofcourse a shortcut file which target is a simple 
"hello.vbs" script (duh :-) ) which contains nothing more than

- - - -
msgbox "hello world!"
- - - -

Later I changed the target of that shortcut to a simple GUI executable, but 
that didn't stop the error from occuring

> I want to reproduce the problem in my system.

In the other thread in

microsoft.public.windowsxp.general
Re: How to add a "Shutdown" folder  (the opposite of the "startup" folder) ?

I just mentioned that I tested the ShellExecuteEx function with the 
SEE_MASK_NOCLOSEPROCESS flag, and it does give the same results : When a 
shortcut is provided (regardless of its target) the process field does not 
get filled in.   No error occurs though (even though GetLastError does seem 
to hold a usable error value ...)

Regards,
Rudy Wieser

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


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