Mail Archives: djgpp/1997/04/12/15:24:02
A. Sinan Unur wrote:
>
> > I have a program that will need to run another program with some
> > options. The program line looks like
> > success=system(test.exe -d c:\junk\); .
>
> anyway, did you try specifying the full path for the executable? i do
> not know if system inherits the path or starts with a clean one. or
> maybe test.exe is not in the path to begin with?
No, system() under djgpp is supposed to inherit the entire environment
of the parent process. I suppose it's possible that his SHELL variable
doesn't specify enough memory for the environment, and some of the
variables that are added by the djgpp startup code are getting chopped
off in the call to system().
To the original poster: Try editing your 'config.sys'. Find the line
that says "SHELL=C:\DOS\COMMAND.COM" or something similar. It might say
"COMSPEC" instead of "SHELL". Add " /E:2048" to the end of that line,
save, and reboot your computer. This can't hurt anything and may help
solve the problem.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Call me for your free AOL disk! | http://www.cs.com/fighteer |
---------------------------------------------------------------------
- Raw text -