| delorie.com/archives/browse.cgi | search |
| From: | dontmailme AT iname DOT com (Steamer) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: (none) |
| Date: | Wed, 19 Jul 2000 08:47:46 GMT |
| Organization: | always disorganized |
| Lines: | 24 |
| Message-ID: | <39756b0a.1384793@news.freeserve.net> |
| References: | <l03120601b59aa03822b3@[129.101.145.218]> |
| NNTP-Posting-Host: | modem-211.virginia.dialup.pol.co.uk |
| X-Trace: | news6.svr.pol.co.uk 963996466 19524 62.137.97.211 (19 Jul 2000 08:47:46 GMT) |
| NNTP-Posting-Date: | 19 Jul 2000 08:47:46 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Forte Free Agent 1.11/32.235 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
David Roon wrote:
> I'm trying to write code that will allow me to take an output file from one
> program (fileName.inp), and export it into a pre-existing application.
> (Running the pre-existing application, and creating an output file).
>
> The existing program ('CAPTURE') can be run in MS-DOS, using the following
> command line;
>
> capture i=<fileName>.inp o=<fileName>.out
>
> where <fileName>.inp is the datafile as created by my program
>
> I'd like to use something similar to the 'WinExec' function available in
> Visual Basic.
The standard C function is system(). E.g.
system("capture i=foo.inp o=foo.out");
This should do what you want, but if not then take a look at the
non-standard spawn*() functions (see the DJGPP libc documentation).
S.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |