home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 197 / DOS5BAT.ZIP / ADDPATH.BAT next >
Encoding:
DOS Batch File  |  1991-11-03  |  477 b   |  20 lines

  1. @ECHO OFF
  2. REM This is ADDPATH.BAT
  3. REM
  4. REM ADDPATH.BAT lets yoy temporarily add subdirectories to your PATH
  5. REM (assuming your existing path isn't overly long). Rebooting or typing
  6. REM OLDPATH will retore the original path.
  7. REM
  8. IF %1!==! GOTO OOPS
  9. PATH > \OLDPATH.BAT
  10. SET PATH=%PATH%,%1
  11. GOTO END
  12. :OOPS
  13. ECHO Enter the name of the
  14. ECHO subdirectory to add to
  15. ECHO your PATH after the %0
  16. ECHO.
  17. ECHO Type \OLDPATH to restore
  18. ECHO your original PATH setting.
  19. :END
  20.