From: Wilfried Hennings To: djgpp AT delorie DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: winXP, gcc: calling a batch file via system() Date: Thu, 21 Nov 2002 11:58:41 +0100 Message-ID: References: <2110-Wed20Nov2002190106+0200-eliz AT is DOT elta DOT co DOT il> X-Mailer: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Thank you for your reply! "Eli Zaretskii" wrote: > I hope this is the refreshed v2.03, the one that has several fixes > that specifically target W2K and XP systems. If not, please install > the refresh. How can I see whether it is? At least the files are dated Aug15, 2002. > > - When "system" searches for the existence of latex2png, it abbreviates > > the name to "latex2pn". > > That's not true, to the best of my memory: the program name is not > abbreviated when `system' looks for it along the PATH. > > DJGPP's library sources are freely available, so I suggest to download > djlsr203.zip and trace the execution of the functions on system.c and > dosexec.c modules. If you see the abbreviation, please point out > where is it done. As far as I can see, in dosexec.c lines 182 to 207. > > > - Main problem: When the batch file is called standalone, everything > > works as it should. When it is called from the C program via system() I > > get the message "Not enough environment space". I could not find out how > > to increase this space: anything I do only increases the space for the > > console window mother process but not for the daughter process. > > Invoke the batch file like this: > > command.com /e:2000 /c latex2png That's it! Thanks! and best regards from -- email me: change "nospam" to "w.hennings" Dipl.-Ing.(=M.Sc.Eng.) Wilfried Hennings c./o. Forschungszentrum (Research Center) Juelich GmbH, MUT All opinions mentioned are strictly my own, not my employer's.