Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!feeder.news.orange.fr!not-for-mail From: vincent.belaiche@gmail.com (Vincent =?iso-8859-1?Q?Bela=EFche?=) Newsgroups: comp.lang.basic.visual.misc Cc: =?iso-8859-1?Q?Vincent_Bela=EFche?= Subject: Re: Redirecting VB script sub shell standard output References: <80zkh9rkje.fsf@gmail.com> Date: Fri, 14 Oct 2011 20:14:28 +0200 Message-ID: <80ipnrcuez.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:HbAwD6mbTtkBaNxlQP+Km+thwLM= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 111014-0, 14/10/2011), Outbound message X-Antivirus-Status: Clean Lines: 25 Organization: les newsgroups par Orange NNTP-Posting-Date: 14 Oct 2011 20:14:28 CEST NNTP-Posting-Host: 92.135.113.85 X-Trace: 1318616068 reader.news.orange.fr 30789 92.135.113.85:14538 X-Complaints-To: abuse@orange.fr Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:488 Eric Coleman writes: > On 10/9/2011 3:12 PM, Vincent Belaïche wrote: >> Hello, >> >> I am creating some sub shell object in the Visual basic script by >> >> Set objShell = WScript.CreateObject("WScript.Shell") >> >> And then I am executing some console application. I would like to >> redirect the standard out of this console application to the standard >> output of the calling visual basic script, but I am desesperate to find >> how to do this. >> >> Any idea is welcome. >> >> Vincent. >> > > There is some code on planetsourcecode.com that shows you how to read data from the console. Just search for > console' in the vb section, it's easy to find. Thanks for the reference, I will have a look at it. Vincent.