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

From: "Gil Myers" <gmeyers AT logan DOT net>
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

Chris <ckeenan AT scsn DOT net> 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.

- Raw text -


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