Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!ircam.fr!freenix!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: Mon, 10 Oct 2011 08:02:09 +0200 Message-ID: <804nzhtme6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:B5cjLBtk+fMSL2ow9IZI8YeMll0= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 111009-1, 09/10/2011), Outbound message X-Antivirus-Status: Clean Lines: 42 Organization: les newsgroups par Orange NNTP-Posting-Date: 10 Oct 2011 08:02:15 CEST NNTP-Posting-Host: 92.135.113.85 X-Trace: 1318226535 reader.news.orange.fr 30780 92.135.113.85:11522 X-Complaints-To: abuse@orange.fr Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:468 Ron Weiner writes: > Vincent Belaïche presented the following explanation : >> 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. > > Not sure exactly what you want to accomplish, but you might be able to > pipe or redirect the standard output of the console application to a > file on the disk, then read the file into your VB app whereupon you > can do anything you want with the contents. > > Research the Pipe {|} or the redirect {>} command line functions with > your console application. > > Rdub Redirecting to a file won't do it. My VB script is run itself from a console with csscript, and I would like the output of the sub-shell run console application to be run in the same console. Console (A) +-------- VB script (B) +---- sub-shell with console application (C) I would like the standard output of `B' and `C' to be displayed in the same scrollable screen that is part of `A'. Vincent.