delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/09/05:32:45

From: ckeenan AT scsn DOT net (Chris)
Newsgroups: comp.os.msdos.djgpp
Subject: Making system calls in DJGPP???
Date: Sun, 08 Jun 1997 00:10:37 GMT
Organization: All USENET -- http://www.Supernews.com
Lines: 17
Message-ID: <3399f7f4.78421722@supernews.scsn.net>
NNTP-Posting-Host: cola90.scsn.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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??

Thanks,
Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019