Category : Utilities for DOS and Windows Machines
Archive   : PUSHPATH.ZIP
Filename : ADDPATH.BAT

 
Output of file : ADDPATH.BAT contained in archive : PUSHPATH.ZIP
echo off
rem A d d p a t h -- add a string to the current path
rem
rem use: addpath d:\bunny {/f}
rem result: path is now dr:\p1; .. ;dr:\pn;d:bunny
rem switch: if /f (first or front, as you will) is the 2nd arg,
rem path becomes d:bunny;dr:\p1; .. ;dr:\pn
rem (note required space between new string and switch)
rem cg jul 86
rem
rem contributed to public domain on condition that this notice be retained:
rem written by Craig Goodrich
rem Pussycat Systems
rem 17632 Towne Crest Dr
rem Gaithersburg, MD 20877
rem phone (voice) 301 869-2297
rem
rem
for %%s in ( /F /f ) do if %2~ == /%%s~ goto front
rem must check if path was set . . .
if %path%~ == ~ goto nopath

path %path%;%1
goto :done
:front
path %1;%path%
goto :done
:nopath
path %1
:done
rem display new path
path


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : PUSHPATH.ZIP
Filename : ADDPATH.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/