From: nospam AT miyares DOT slip DOT duq DOT edu (Real Email in Sig!) Newsgroups: comp.os.msdos.djgpp Subject: Re: Making system calls in DJGPP??? Date: 8 Jun 1997 17:05:43 GMT Organization: Duquesne University, Pittsburgh, PA Lines: 26 Message-ID: <5neop7$shn@news.duq.edu> References: <3399f7f4 DOT 78421722 AT supernews DOT scsn DOT net> NNTP-Posting-Host: miyares.slip.duq.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Chris (ckeenan AT scsn DOT net) wrote: : I need to make a call to the system to run a file. : : If I run it like this: : : system("program.exe"); : : 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?? I think you need to run a copy of command.com to execute a bat file. There's a switch for command.com that takes a program to execute as a parameter. Not sure what it is though. Type command /? and you'll see. I'm not trying to make you figure it out, I'm just not using dos right now. -- E M A I L : substitute 'eNn' 'Oh' 'eSs' 'Pee' 'Aay' 'eMm' with 'Kay' 'aRe' 'yoU' 'eSs' 'Tea' 'whY'