Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ucsd!nprdc!halff From: halff@nprdc.arpa (Henry Halff) Newsgroups: comp.sys.ibm.pc Subject: Re: How to add to PATH on the fly? Message-ID: <604@arctic.nprdc.arpa> Date: 6 Jul 88 15:29:51 GMT References: <688@crcmar.crc.uucp> Sender: news@nprdc.arpa Reply-To: halff@nprdc.arpa (Henry Halff) Organization: Navy Personnel R&D Center, San Diego Lines: 19 In article <688@crcmar.crc.uucp> patrick@crcmar.crc.uucp (Andrew Patrick) writes: >There is probably a simple answer to this question, but here it is >anyway: > >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. Here are two simple batch programs that do what you want PATHPLUS.BAT set oldpath=%path% path %path%;%1 PATHREST.BAT set path=%oldpath% HH