From: Martin Bernreuther Newsgroups: comp.os.msdos.djgpp Subject: How to read/modify environment variables? Date: Tue, 24 Jun 1997 18:37:00 +0000 Organization: University of Stuttgart Lines: 20 Message-ID: <33B013CC.E452725B@po.uni-stuttgart.de> Reply-To: Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de NNTP-Posting-Host: iv-kib1.bauingenieure.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I like to write a small tool to add a path to the PATH variable only if it's not already in. How can I get a hold of the environment variables? Is there already a tool to do this? Is there maybe a tool just to search a environment variable for a string? Bye Martin ------------------------------------------------------------------------ Dipl.-Ing. Martin Bernreuther University of Stuttgart Pfaffenwaldring 7 Informationsverarbeitung im 70569 Stuttgart konstruktiven Ingenieurbau Germany E-Mail: Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de http://www.uni-stuttgart.de/iv-kib/ ------------------------------------------------------------------------