Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!quiche!storm From: storm@cs.mcgill.ca (Marc WANDSCHNEIDER) Newsgroups: comp.lang.pascal Subject: ENVIRONMENT variables Message-ID: <1991Apr21.221532.29622@cs.mcgill.ca> Date: 21 Apr 91 22:15:32 GMT Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS, McGill University, Montreal, Canada Lines: 20 How does one manipulate environment variables in Turbo PASCAL 6.0..? Is there anywhere in the manuals where I can get more information on this? The reason I ask is because I am writing a patch for a program to a BBS. However, the program has a JUMP to SHELL routine which allows the user to jump to DOS. Obviously, the SYSOP doesn't want the users to be able to do this, so I was wondering if there was a way I could mess with the COMSPEC or the SHELL= line so that the jump to shell would be disabled. Then, when the program is done running, the TP program would reset the COMSPEC or SHELL=. Can this be done, or is there a simpler way to correct this problem..? ./*- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storm@cs.mcgill.ca McGill University It's 11pm, do YOU Marc Wandschneider Montreal, CANADA know what time it is? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~