Date: Sun, 7 Sep 1997 16:33:54 +0300 (IDT) From: Eli Zaretskii To: moabdib cc: djgpp AT delorie DOT com Subject: Re: Help me about Djgpp In-Reply-To: <01bcbaee$70d4ac60$0100007f@padrino> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 6 Sep 1997, moabdib wrote: > How I can to execute a DOS command under DJGPP???? Use the library function `system'. For example: #include .... int status = system ("dir *.c > cfiles.lst"); if (status != 0) fprintf (stderr, "Error %d while running "DIR\n", status); For more details about `system', see its docs in the libc reference (type "info libc alpha system" from the DOS prompt).