Date: Mon, 9 Feb 1998 16:40:02 +0200 (IST) From: Eli Zaretskii To: Angelo Maffia cc: djgpp AT delorie DOT com Subject: Re: DOS COMMAND EXECUTION IN A DJGPP PROGRAM In-Reply-To: <6bmorh$7l8@everest.vol.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 9 Feb 1998, Angelo Maffia wrote: > I need to know please how i can execute a dos command in my c-programs, i.e. > a file batch. Use the library function `system', like this: #include ... int status = system ("mybatch"); This will look for a batch file `mybatch.bat' in the current directory, then along the PATH, and if found, will run it. You should read the documentation of `system' in the library reference, before using it.