Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uunet!fernwood!portal!cup.portal.com!robc From: robc@cup.portal.com (Rob X Cowan) Newsgroups: comp.lang.c Subject: Re: DOS Environment Variables Message-ID: <42119@cup.portal.com> Date: 8 May 91 05:33:59 GMT References: <91125.051531AURPS@ASUACAD.BITNET> Organization: The Portal System (TM) Lines: 16 > Does anyone know how to permanently change a DOS environment variable from > within an executing program? PUTENV() changes/creates a variable but it > is only in effect while the program is running. As soon as I go back to > DOS, the environment is restored to its original variables. I'm using > Turbo C. > > Thanks for any help, > Rick Schatzman I forgot to mention that int 2Eh (command.com interface) also has a way to actually access its own SET command. Can't remember how right now, but it should be easier than direct access, if your not up to that. -Rob robc@cup.portal.com