Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!uwm.edu!psuvax1!psuvm!YALEMED!BEEBE From: BEEBE@YALEMED.BITNET (Rick Beebe) Newsgroups: bit.listserv.novell Subject: RE: Appending to DOS path Message-ID: Date: 28 Feb 90 17:39:00 GMT Sender: Novell LAN Interest Group Reply-To: Novell LAN Interest Group Lines: 39 Approved: NETNEWS@PSUVM.BITNET Gateway X-VMS-To: IN%"NOVELL@SUVM.BITNET" >This is the batch program to append to my path: > >pathadd.bat > >@echo off >path = %path%;%1 > >This works fine for a single path addition thus you need to run it for each >added path. You can do the command path >> oldpath.bat and then restore >the original path when you need. > > -Al Marshall, Proteon A more flexible version: @echo off path > reset.bat :loop if "%1" == "" goto done path=%path%;%1 shift goto loop :done This one lets you add as many paths as you want, i.e. pathadd c:\utils;c:\net By typing RESET, you can set your path back to its original state. ----------------------------------------------------------------------------- Rick Beebe (203) 785-4566 ***** ***** ***** * * Biomedical Computing Unit * * * ** * Yale University School of Medicine * * *** * * * 333 Cedar Street, New Haven, CT 06514 * * * * ** * * * * * BEEBE@YALEMED.BITNET beebe%biomed.decnet@venus.ycc.yale.edu -----------------------------------------------------------------------------