Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!ncar!boulder!sunybcs!bingvaxu!leah!emb978 From: emb978@leah.Albany.Edu (Eric M. Boehm) Newsgroups: comp.sys.ibm.pc Subject: Re: How to add to PATH on the fly? Summary: Batch files to add directories to your path Message-ID: <724@leah.Albany.Edu> Date: 25 Jun 88 15:34:43 GMT References: <688@crcmar.crc.uucp> Organization: The University at Albany, Computer Services Center Lines: 25 In article <688@crcmar.crc.uucp>, patrick@crcmar.crc.uucp (Andrew Patrick) writes: > How can I add directories to my PATH specification on the fly? > > I want to leave the path as it is and simply add directories on the > end. I don't want to edit AUTOEXEC.BAT and reboot, and I don't want > the changes to be permanent. I have a set of batch files I picked up from PC Magazine that lets you add directories to the beginning or end of the path variable, allows you to delete a single directory, or delete forward and backward of a single directory (including the directory). The batch file also saves the path as it was before the current invocation so you can restore the path setting . However, if you added two directories in two separate calls, it would only save the most recent path. If you want the change to be temporary, it is easiest to invoke a shell (type "command" at the prompt). Any changes you make will be lost when you "exit". If this is of enough interest, I will post the files -- 4 batch files, less than 1K total (but where? comp.binaries.ibm.pc? comp.sys.ibm.pc?) Eric M. Boehm EMB978@ALBNY1VX.BITNET EMB978@LEAH.ALBANY.EDU