www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/03/10:29:06

Message-ID: <Pine.LNX.4.30.0107031607530.13517-100000@anthony.siemens.ebp.ii3.b-rail.be>
From: DEMERRE DIETER <EXT DOT Dieter DOT Demerre AT siemens DOT be>
To: djgpp Mailing List <djgpp AT delorie DOT com>
Subject: Re: how to calling to dos commands from program c?
Date: Tue, 3 Jul 2001 16:27:31 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Reply-To: djgpp AT delorie DOT com

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C103CC.480B5B00
Content-Type: text/plain

This message uses a character set that is not supported by the Internet
Service.  To view the original message content,  open the attached message.
If the text doesn't display correctly, save the attachment to disk, and then
open it using a viewer that can display the original character set. 
<<message.txt>> 

------_=_NextPart_000_01C103CC.480B5B00
Content-Type: text/plain;
	name="message.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="message.txt"

Received: from anthony.siemens.ebp.ii3.b-rail.be (193.210.166.161 =
[193.210.166.161]) by bru0001a.siemens.be with SMTP (Microsoft Exchange =
Internet Mail Service Version 5.5.2653.13)
	id NYNPDXWB; Tue, 3 Jul 2001 16:27:26 +0200
Received: from localhost (ddemerre AT localhost)
	by anthony.siemens.ebp.ii3.b-rail.be (8.9.3/8.9.3/SuSE Linux =
8.9.3-0.1) with ESMTP id QAA21445
	for <djgpp AT delorie DOT com>; Tue, 3 Jul 2001 16:27:32 +0200
X-Authentication-Warning: anthony.siemens.ebp.ii3.b-rail.be: ddemerre =
owned process doing -bs
Date: Tue, 3 Jul 2001 16:27:31 +0200 (CEST)
From: Dieter Demerre <ext DOT dieter DOT demerre AT siemens DOT be>
X-Sender:  <ddemerre AT anthony DOT siemens DOT ebp DOT ii3 DOT b-rail DOT be>
Reply-To: Dieter Demerre <ext DOT dieter DOT demerre AT siemens DOT be>
To: djgpp Mailing List <djgpp AT delorie DOT com>
Subject: Re: how to calling  to dos commands from program c?
In-Reply-To: <9hsfa8$rom$1 AT pepico DOT gva DOT es>
Message-ID: =
<Pine DOT LNX DOT 4 DOT 30 DOT 0107031607530 DOT 13517-100000 AT anthony DOT siemens DOT ebp DOT ii3 DOT b-rail=
.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=3DX-UNKNOWN
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Tue, 3 Jul 2001, Joaqu=3DEDn Toribio wrote:

> how to calling  to dos commands from program c?

I guess you want to execute a dos-command from within a c-program.

For this you can use the system() function
note however:

<< man system
=3D2E..
system() does not return until the child process has terminated
=3D2E..
--------------
e.g. system("C:\\DOS\\format C:");

you can also use the exec*() functions, but then you should note
that the function won't return since:

<< man exec
=3D2E..
A successful call to exec*() does not return because
the new program overwrites the calling program
=3D2E...
--------------

-- Groetjes vanwege... Greetings from... --
-- Dieter Demerre  ***  ddemerre AT acm DOT org --
-- http://www.angelfire.com/de/ddemerre/ --

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/d- s+:++ a-()>-- C+ UH P++(+) L++ E W++ N+ o K? w o V
M PS+ PE- Y+ PGP+ t 5? X+ R+> tv+ b+ DI D G e+++ h+> r% z-
------END GEEK CODE BLOCK------

------_=_NextPart_000_01C103CC.480B5B00--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019