Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu From: mjensen@ccwf.cc.utexas.edu (Marc S. Jensen) Newsgroups: comp.lang.pascal Subject: Modifying the DOS environment with TP Message-ID: <43263@ut-emx.uucp> Date: 27 Jan 91 19:49:41 GMT Sender: news@ut-emx.uucp Reply-To: mjensen@ccwf.cc.utexas.edu (Marc S. Jensen) Organization: The University of Texas at Austin Lines: 28 I'm working on a DOS shell program, for no particular reason other than I want to, and have a problem: While I can use GetEnv, EnvCount, etc., to read the DOS environment variables, I can't find a way of changing those same variables. I thought I could get around this by using somoething like exec('COMMAND.COM','/C SET =') but this won't work, I guess because the new values are zapped when the exec statement is done executing... Any suggestions? -Marc P.S. - I'm using TP5.5, 'cause I don't like Borland's new, fake looks-like- a-mac-in-text-mode interface, even if it would be nice to edit more than one file at a time... -- Marc Jensen mjensen@ccwf.cc.utexas.edu University of Texas at Austin ----- "Never attribute to malice that which is adequately explained by stupidity!"