From: "Andreas Bierhals" Newsgroups: comp.os.msdos.djgpp Subject: Re: DOS stuff Date: 29 Oct 1997 23:04:40 GMT Organization: RRZN - Newsserver Lines: 14 Message-ID: <01bce3f6$87b0c460$LocalHost@bierhals> References: <19971025031438 DOT 9916 DOT qmail AT hotmail DOT com> NNTP-Posting-Host: h47.ts1.uni-hannover.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi John! Try using the function (in ) int setenv(const char *name, const char *value, int rewrite); 'rewrite' is a switch to decide whether to overwrite existing environment variables or to leave the old ones. Greetings Andreas B.