Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!att!westmark!dave From: dave@westmark.UUCP (Dave Levenson) Newsgroups: comp.sys.ibm.pc Subject: Re: Interactive BAT files: here's how Message-ID: <431@westmark.UUCP> Date: 10 Oct 88 03:03:52 GMT References: <8810040015.AA21729@decwrl.dec.com> <1317@micomvax.UUCP> Organization: Westmark, Inc., Warren, NJ, USA Lines: 17 In article <1317@micomvax.UUCP>, ray@micomvax.UUCP (Ray Dunn) writes: ... > In MS C, setting environment variables is easy. You use the putenv library > call, putenv("arg1=fred");, sets arg1 to "fred", whether arg1 existed > before or not. Setting the program's own environment variables is, in deed, easy. But the putenv() function only modifies its caller's own environment. What the original article requires is that the C program modify the environment of its parent process. Putenv() does not do this. No documented MS-DOS function does this. -- Dave Levenson Westmark, Inc. The Man in the Mooney Warren, NJ USA {rutgers | att}!westmark!dave