home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / chgpath.arc / CHGPATH.DOC < prev    next >
Encoding:
Text File  |  1987-04-06  |  4.1 KB  |  114 lines

  1.  
  2.  
  3.      CHGPATH  (Change Directory)                    Version 1.0 (4/87)
  4.      Command
  5.  
  6.      Copyright (C) 1987 by Scott Mason, except where noted in the 
  7.        source code,  All Rights Reserved.
  8.  
  9.      Permission is hereby granted for use by non-profit entities only.
  10.      Distribution of this file, CHGPATH.EXE, and/or CHGPATH.C in any form
  11.      for a fee is prohibited.
  12.  
  13.      This file must accompany CHGPATH.EXE to where ever it goes.
  14.     
  15.      Written by Scott Mason
  16.                 4050 Jay Em Circle
  17.                 Ellicott City, MD  21043
  18.  
  19.      ------------------------------------------------------------------
  20.      Purpose:  Allows you the make permanent changes to the PATH
  21.                environment string from the DOS command line without
  22.                having to retype the entire PATH command string.
  23.      
  24.      Format:   CHGPATH  +[drive][path]
  25.                CHGPATH  -[drive][path]
  26.            
  27.                Where:      + is to add the string that follows it to
  28.                              the end of the PATH environment string.  
  29.  
  30.                            - is to remove the string that follows it 
  31.                              from the PATH environment string.
  32.  
  33.                            [drive] is a valid DOS drive letter (i.e. C:)
  34.  
  35.                            [path] is a valid DOS directory path (i.e. \DOS)
  36.  
  37.  
  38.  
  39.      Remarks:     All additions to the PATH string are appended to the end
  40.                of the current PATH string.  If no PATH environment string is
  41.                found, one is created with the path the user specified as its
  42.                only path.  If no path environment string exists and an attempt
  43.                is made to remove a path, the message "No path is set ..." will
  44.                be displayed.
  45.  
  46.                   There is no validation of the drive or paths the user
  47.                includes on the command line.  And no length check is made
  48.                on the resulting PATH string.
  49.  
  50.                   The new PATH setting is displayed and can be redirected.
  51.                   
  52.                   Written using the DeSmet C88 C compiler package, v2.51
  53.                Acknowledgement and graditude is hereby given to:
  54.  
  55.                         John M Sellens, who wrote the getpath & parse_path
  56.                             functions, and
  57.                         Dan Lewis, who wrote the execute_string (and
  58.                             subsequent) functions.
  59.  
  60.      
  61.                   Any comments and/or suggestions are welcome.  I visit two
  62.                BBSs fairly often.  They are:
  63.  
  64.                   Tom Vervacke's Baltimore-Washington BBS 
  65.                   (301) 381-6441
  66.  
  67.                   Robert Blacher's Computer Connections BBS
  68.                   (202) 547-7621
  69.  
  70.  
  71.      Future Improvements:
  72.  
  73.                   Allowing the user to specify where in the PATH environement
  74.                string to add a new path.
  75.  
  76.  
  77.      Examples:
  78.      
  79.               C:\>CHGPATH    +D:\WP  >NUL
  80.  
  81.                  Will add the path D:\WP to the end of the current PATH
  82.                  environement string.  If the PATH environment string before
  83.                  the command was:
  84.  
  85.                  C:;C:\;C:\DOS;C:\UTILS
  86.                   
  87.                  then it will be
  88.                   
  89.                  C:;C:\;C:\DOS;C:\UTILS;D:\WP
  90.                  
  91.                  after the CHGPATH command is executed.
  92.  
  93.                  Because ">NUL" is also on the command line, the new
  94.                  PATH setting is not displayed.
  95.  
  96.  
  97.               C:\>CHGPATH    -d:\reflex
  98.  
  99.                  Will remove the path D:\REFLEX from the current PATH
  100.                  environement string.  If the PATH environment string before
  101.                  the command was:
  102.  
  103.                  C:;C:\;C:\DOS;C:\UTILS;D:\REFLEX;D:\WP
  104.                   
  105.                  then it will be
  106.                   
  107.                  C:;C:\;C:\DOS;C:\UTILS;D:\WP
  108.                  
  109.                  after the CHGPATH command is executed.  The new PATH
  110.                  setting will be displayed.
  111.  
  112.  
  113.  
  114.