Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!shadooby!mailrus!purdue!bu-cs!snorkelwacker!spdcc!merk!xylogics!cloud9!jjmhome!m2c!wpi!mhampson From: mhampson@wpi.wpi.edu (Mark A. Hampson) Newsgroups: comp.sys.ibm.pc Subject: MS-DOS Environment Variables Message-ID: <5679@wpi.wpi.edu> Date: 17 Nov 89 02:23:47 GMT Organization: WPI Department of Mechanical Engineering Lines: 27 I am wondering if anyone has tripped across a way to set an MS-DOS environment variable from within a program that is still in the environment table when the program terminates. The commands in Turbo * will allow you to alter the environment variable table, but when they only operate on a copy of the table which is created when you execute the program and therefore are lost on termination. I am trying to store the current directory path name in an environment variable. I am willing to approach this two ways: 1) have a program return the value in such a way that a .BAT file can set it and have it stay in the table 2) or to have a program set it (the prefered method). If anyone has any great ideas on this could you please EMAIL them to me as I do not read this newsgroup regularly. Thanks, -- /----------------------------------------------------------------------------\ | We are not in an energy crisis, we are having an entropy crisis... | \----------------------------------------------------------------------------/ Mark A. Hampson -- mhampson@wpi.wpi.edu