Hello,

I want to execute console application with WshShell.Exec
method from HTA. However, during execution new console is
created and pops up before my application. Can I run console
process without console window with WshShell.Exec?

Note: I cannot use WshShell.Run since I need access to
process' stdout/stderr streams.

Thanks in advance
Alex

Re: How to run console app with WshShell.Exec without console window? by Bill

Bill
Thu Nov 03 16:48:43 CST 2005

Alex Blekhman wrote:

> Can I run console process without console window with WshShell.Exec?

As far as I know, no.

An alternative approach is to run cmd.exe using WshShell.Run and
redirect stdout and stderr to temporary files.

--
Bill Stewart

Re: How to run console app with WshShell.Exec without console window? by Alex

Alex
Fri Nov 04 03:18:14 CST 2005

Bill Stewart wrote:
>
>> Can I run console process without console window with
>> WshShell.Exec?
>
> As far as I know, no.
>
> An alternative approach is to run cmd.exe using
> WshShell.Run and redirect stdout and stderr to temporary
> files.

I was afraid that this is the only option.

Thanks