home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is ADDPATH.BAT
- REM
- REM ADDPATH.BAT lets yoy temporarily add subdirectories to your PATH
- REM (assuming your existing path isn't overly long). Rebooting or typing
- REM OLDPATH will retore the original path.
- REM
- IF %1!==! GOTO OOPS
- PATH > \OLDPATH.BAT
- SET PATH=%PATH%,%1
- GOTO END
- :OOPS
- ECHO Enter the name of the
- ECHO subdirectory to add to
- ECHO your PATH after the %0
- ECHO.
- ECHO Type \OLDPATH to restore
- ECHO your original PATH setting.
- :END
-