home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_04 / 1n04073a < prev    next >
Text File  |  1990-07-29  |  969b  |  24 lines

  1.    1:   @echo off
  2.    2:   rem     epath.bat:
  3.    3:   rem        Handy little script that allows
  4.    4:   rem        modification of the System Path using
  5.    5:   rem        your own favorite text editor (set below
  6.    6:   rem        as value of the EDITOR variable).
  7.    7:   rem            Usage: epath
  8.    8:   rem    Note:    This version requires DOS 3.3. If you have a
  9.    9:   rem        previous version of DOS, then:
  10.   10:   rem            1) delete the word "call" from the
  11.   11:   ren               next to last line
  12.   12:   rem            2) delete the last line altogether.
  13.   13:   rem
  14.   14:   set EDITOR=e
  15.   15:   echo @echo off >%TMP%\pathfile.bat
  16.   16:   echo rem Just edit this file, save the >>%TMP%\pathfile.bat
  17.   17:   echo rem changes, and exit the editor >>%TMP%\pathfile.bat
  18.   18:   echo rem normally to change your path: >>%TMP%\pathfile.bat
  19.   19:   echo set PATH=%PATH%>>%TMP%\pathfile.bat
  20.   20:   rem
  21.   21:   %EDITOR% %TMP%\pathfile.bat
  22.   22:   call %TMP%\pathfile.bat
  23.   23:   del %TMP%\pathfile.bat
  24.