From: "Gil Myers" Subject: Re: Making system calls in DJGPP??? Newsgroups: comp.os.msdos.djgpp References: <3399f7f4 DOT 78421722 AT supernews DOT scsn DOT net> Organization: The Unknown Programmers Message-ID: <01bc73d5$65eeac20$f68033cf@pentium> NNTP-Posting-Host: 207.51.128.246 Date: 8 Jun 97 06:18:39 GMT Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Chris wrote in article <3399f7f4 DOT 78421722 AT supernews DOT scsn DOT net>... > it works fine, but when I use a .bat to allow the user to configure > the program being called, it just ignores it. > > How can I get it to run > > system("program.bat"); > > where program.bat is simply program.exe -1 -2?? Try: system("command.com /c program.bat"); This invokes the command interpreter for the task. I don't know if this is the best (or only) way to do this under DJGPP. Good luck.