Mail Archives: djgpp/1997/06/08/14:03:34
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'
- Raw text -