www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/23/03:12:29

Message-ID: <20001223075639.7585.qmail@web3406.mail.yahoo.com>
Date: Fri, 22 Dec 2000 23:56:39 -0800 (PST)
From: Awake <abe_bcs AT yahoo DOT com>
Subject: Re: Is there a way to execute dos commands, or call other executables within C?
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

--- simone <wyosimone AT home DOT com> 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?
> 
> Thanks

There are many functions prototyped in process.h. You
might want to use system(), exec(), etc. Check out the
info.


=====
Peace.

[- a w A k e -]

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

- Raw text -


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