Mail Archives: djgpp/2002/07/19/08:41:28
Florian Sukup <f DOT sukup AT mobilkom DOT at> wrote:
> Hi,
> I am calling in a .bat file an .exe (C-source and compiled with djgpp).
> I want to pass values from the C-program to variables in the calling script
> such that I can work with them after I called this .exe.
Then, for maximal portability, you'll have to write those values to a
temporary .bat file, and 'call' that from the controlling one after
the .exe is done.
Commands can't usually change environment variables as seen by another
process. Not even in DOS. There are undocumented methods of doing
that, of course, but unless there's very pressing need, you should
avoid those.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -