DOS Environment Variables

Rob X Cowan robc at cup.portal.com
Wed May 8 15:33:59 AEST 1991


> 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 at cup.portal.com



More information about the Comp.lang.c mailing list