🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15194

Re: How catch the output of a dos software?

#15194
From: JD
Date: Fri, 18 Jul 2003 10:11
17 lines
1593 bytes
"Mauro Italy" <mauro.rolly@libero.it> wrote:
> I remember that may be possible to catch the ouput of a
> software that write in a dos windows. I remember some about
> to redirect the output and the input also..

You can redirect the output by piping it to a file:

        DosProgm > MyFile.txt

As far as the input to the dos program, the program must have
been written to accept an argument(s). Assuming that it has
and that it expects a filename as the first argument:

        DosProgm FileName

~ JD
Technical Details
Message-ID: <3f17c7e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f17a43f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7e8f3e0aa516de60
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-18 03:40:49 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: How catch the output of a dos software?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.203.129.169 172.203.129.169    
References:  <3f17a43f@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f17c7e6$1@newsgroups.borland.com>
Date: 18 Jul 2003 03:11:50 -0700
X-Trace: newsgroups.borland.com 1058523110 207.105.83.65 (18 Jul 2003 03:11:50 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail