Date: Tue, 23 Dec 1997 19:12:54 +0200 (IST) From: Eli Zaretskii To: amit cc: djgpp AT delorie DOT com Subject: Re: using 'spawn' to run djgpp exe in windows .. In-Reply-To: <349EC470.3F5C@bigfoot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 22 Dec 1997, amit wrote: > it seems that even though I use 'spawnve(..)' and passing > my own environment array, the djgpp application sees the > original Windows environment. I'd guess that Borland and/or Win32 executables have their own way of passing environment which bypasses the environment of the DOS box where the DJGPP child program is run. Try calling the DJGPP program via `system' instead of `spawnve'. If that doesn't help, try `system' with explicit COMMAND.COM, like this: system ("command.com /c myprogram.exe");