With wscript.run there is an argument that lets you run the
command invisibly but there does not appear to be the same
argument available with wscript.exec. I need to run a
command and capture its stderr (although I don't need the
stdin and stdout) and wscript.exec lets me do that except
for the annoying flashing of the command window which
is doubly annoying in my application since I have to
perform wscript.exec on several commands in succession
and the screen just goes crazy.

I would prefer to keep my application self contained (its
currently one .hta file) and would prefer not to have to
use temporary files if I don't have to.

Is there a way to handle this?

Re: wscript.exec in hidden window? by Csaba

Csaba
Fri Aug 19 04:27:17 CDT 2005

ggrothendieck@gmail.com wrote:
> With wscript.run there is an argument that lets you run the
> command invisibly but there does not appear to be the same
> argument available with wscript.exec. I need to run a
> command and capture its stderr (although I don't need the
> stdin and stdout) and wscript.exec lets me do that except
> for the annoying flashing of the command window which
> is doubly annoying in my application since I have to
> perform wscript.exec on several commands in succession
> and the screen just goes crazy.

Some possible ideas at:
http://groups-beta.google.com/group/microsoft.public.scripting.vbscript/browse_frm/thread/535ec14836546a7d/
Also, one could use Run in combination with CLI php.exe's proc_open to
achieve your flickerless desire.

Gripe: Why do less and less people sign their names? I can't speak for
other responders here, but queriers are FAR more likely to get a
response from me if I see a name.

Csaba Gabor from Vienna


Re: wscript.exec in hidden window? by ggrothendieck

ggrothendieck
Fri Aug 19 09:34:01 CDT 2005

Thanks. I can't use PHP/Perl/Python etc. since I need a
self-contained solution but following your link and its links
give a number of possibilities which I am pursuing now.