From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: getenv() question Date: Mon, 14 May 2001 14:05:04 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 20 Message-ID: <3AFFC9F0.A428D3CB@ma.tum.de> References: NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 989841904 10457 131.159.68.151 (14 May 2001 12:05:04 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 14 May 2001 12:05:04 GMT X-Mailer: Mozilla 4.75 [de] (Win98; U) X-Accept-Language: de,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii schrieb: > > Sorry, I still don't follow ;-) After srarting a DOS session there normally are set some environment variables like PATH COMMAND etc. now I want to start an application, that is known to set some by itself eg. 290 bytes via putenv() or in a batch wrapper. What I was thinking of, is to determine the free space in the DOS environment before actually launching the application, to be able to tell the user he should increase the 'shell= ... /E:xxx' setting in his config.sys in case the free space were less than the needed 290 bytes. Thanks for spending your time for my problems. -- Gruss Waldemar Schultz. schultz AT ma DOT tum DOT de Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228