Category : Batch File Utilities - mostly for DOS
Archive   : BATCH50.ZIP
Filename : ADDPATH.BAT

 
Output of file : ADDPATH.BAT contained in archive : BATCH50.ZIP
@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


  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : BATCH50.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/