Ref: 03050004
Title: Batch Files to Easily Add to Your Path
Date: 4/9/90

Copyright 3Com Corporation, 1991.  All rights reserved.

It is often desirable to add a new drive or directory to one's
existing DOS or OS/2 path, but inconvenient to first have to
display the path and then type it all in again.  Creating
the following small batch files can simplify this:

  *  "ADDPATH pathname" (add to path) adds the given directory
     pathname to the beginning of your existing path.

  *  "APPPATH pathname" (append to path) adds the given directory
     pathname to the end of your existing path.

Following is the complete text of the two batch files:

  ADDPATH.BAT (add to path):path=%1;%path%
  APPPATH.BAT (append path):path=%path%;%1

These batch files work in OS/2 as well as under DOS.  In OS/2's
protected mode you can also put a named directory into the path at the
command line; for example, "path=%path%;X:\DIR" to append to path.  This
does not work in real (DOS) mode, or under DOS.

