Mail Archives: djgpp/2000/12/23/06:06:30
Message-ID: | <3A448487.BFB525B6@lps.u-psud.fr>
|
Date: | Sat, 23 Dec 2000 11:55:03 +0100
|
From: | taupin <taupin AT lps DOT u-psud DOT fr>
|
X-Mailer: | Mozilla 4.51 [en] (Win98; I)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
Subject: | Re: Is there a way to execute dos commands, or call other executables
|
| within C?
|
References: | <3A43970E DOT FFA62D2F AT home DOT com>
|
X-MIME-Autoconverted: | from 8bit to quoted-printable by upsn13.u-psud.fr id eBNB6Zg13318
|
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id GAA07623
|
Reply-To: | djgpp AT delorie DOT com
|
simone wrote:
>
> Simple question for the experts:
>
> I am using the djgpp c compiler - is there a way to execute dos commands
> like 'dir > file', or perhaps call a batch file for execution, or maybe
> another executable from within my C program?
>
system("dir xxx\yyy\zzz.*");
> Thanks
--
------------------------------------------------------------------------
Daniel Taupin, Physique des Solides, Univ. Paris-Sud, 91405 ORSAY
E-mail= mailto:taupin AT lps DOT u-psud DOT fr
Tél: (33)1.69.15.60.79, Fax: (33)1.69.15.60.86, home/fax:
(33)1.60.10.26.44
------------------------------------------------------------------------
- Raw text -