Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!reading!onion!cf-cm!sme From: sme@computing-maths.cardiff.ac.uk (Simon Elliott) Newsgroups: comp.sys.ibm.pc Subject: Re: How to add to PATH on the fly? Summary: append,insert,delete to/from path Message-ID: <461@cf-cm.UUCP> Date: 6 Jul 88 13:44:02 GMT References: <688@crcmar.crc.uucp> <6836@cup.portal.com> Organization: Univ. Coll. Cardiff, Cardiff, WALES, UK. Lines: 21 I have a small utility which reads the current PATH, edits it and outputs to stdout. In conjunction with a batch file it allows me to insert an element before the current path, append an element after the current path, insert an element at position N in the current path, and delete an element from the current path. e.g. C>pathedit -2 C:\sme\bin PATH=C:\BATCH;C:\SME\BIN;C:\DOS;C:\BIN puts C:\sme\bin into position 2 in the path and eliminates it elsewhere in the path (My pathedit.bat always reports the resulting PATH) ... similarly with options -a -i -d I can post the batch and C sources if folks are interested. Simon Elliott Microcomputer Support University College Cardiff Computer Centre, Cardiff, Wales ...!mcvax!ukc!cf-cm!sme