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 ?

Path csiph.com!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
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 Thu, 19 Nov 2020 19:20:39 +0100
Organization Aioe.org NNTP Server
Lines 39
Message-ID <rp6d22$e3$1@gioia.aioe.org> (permalink)
References <roqo1t$1kg1$1@gioia.aioe.org> <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>
NNTP-Posting-Host wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To abuse@aioe.org
X-RFC2646 Format=Flowed; Original
X-Notice Filtered by postfilter v. 0.9.2
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-Priority 3
X-MSMail-Priority Normal
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
Xref csiph.com microsoft.public.scripting.vbscript:12309

Show key headers only | 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