home *** CD-ROM | disk | FTP | other *** search
/ Multimedia & CD-ROM 3 / mmcd03-jun1995-cd.iso / utils / disk-sys / addpat10 / addpath.doc next >
Text File  |  1992-12-31  |  3KB  |  80 lines

  1.  ╔═══════════════════════════════════════════════════════════════╗
  2.  ║                                                               ║
  3.  ║   ADDPATH.EXE by John Lindinger, Compuserve ID# 71072,1402    ║
  4.  ║                                                               ║
  5.  ╚═══════════════════════════════════════════════════════════════╝
  6.  
  7. SYNTAX:
  8.  
  9.   ADDPATH.EXE <Valid Pathname> [/A|F] [/B|E] [/S]
  10.  
  11.  
  12. PURPOSE:
  13.  
  14.   ADDPATH will automatically edit the PATH statements found in
  15.   the C:\AUTOEXEC.BAT file.  Those who create software installation
  16.   programs but cannot automatically edit the PATH statement found in
  17.   the AUTOEXEC.BAT file will now be able to accomplish this task
  18.   easily from within a batch file (example INSTALL.BAT).
  19.  
  20.   The ADDPATH Utility will search the C:\AUTOEXEC.BAT file for
  21.   you and add the <Valid Pathname> to the PATH= statement unless
  22.   the <Valid Pathname> is already there.
  23.  
  24.   If no PATH= statement is found then ADDPATH will add one as
  25.   the first statement in the C:\AUTOEXEC.BAT file.
  26.  
  27.   If a C:\AUTOEXEC.BAT file does not exist then ADDPATH will create one
  28.   with the appropriate PATH= statement.
  29.  
  30.   If changes are made then the original AUTOEXEC.BAT file will be saved
  31.   as the AUTOEXEC.OLD file.
  32.  
  33.  
  34. SWITCHES:
  35.  
  36.   The /S (silent mode) switch is useful from within a batch file
  37.   (example INSTALL.BAT).  The switches do not have to be specified
  38.   if you prefer the defaults.
  39.  
  40.     /A  Modify all PATH= statements found (Default)
  41.     /F  Modify only the first PATH= statement found
  42.     /B  Put <Valid Pathname> at the beginning of the search path (Default)
  43.     /E  Put <Valid Pathname> at the end of the search path
  44.     /S  Silent mode - no screen messages
  45.  
  46.  
  47. Author's Comments:
  48.  
  49.   ADDPATH was written as a means to an end (and the cost to you is free).
  50.   Therefore it is not the ultimate in comercial grade software and you must
  51.   decide if it serves your purpose.  The Author assumes no liability for
  52.   the use of this program.  The program was written and compiled using
  53.   version 4.5 of MS-QBASIC.  Some DOS version dependent commands are
  54.   emdedded in the program.  These include the following:
  55.  
  56.     DOS internal functions (COPY and DEL) are used to create AUTOEXEC.OLD
  57.     and to delete temporary files.
  58.  
  59.     The DOS redirect funtion to the NUL device (COPY filenam1 filename2 > NUL)
  60.     was used to eliminate screen messages that normally result from COPY & DEL.
  61.  
  62.     The DOS external command (IF EXIST filename ...) is used to check for
  63.     file existance prior to copying or deleting files to eliminate screen
  64.     messages that normally result from attempting to copy or delete a file
  65.     that does not exist.
  66.  
  67.   These functions work correctly with DOS 5.0 but may be troublesome on
  68.   earlier DOS versions.  The program will still perform its intended purpose
  69.   but resulting malfunctions could include failure to create AUTOEXEC.OLD,
  70.   failure to delete some temporary work files and/or failure to eliminate
  71.   DOS screen messages during program execution.
  72.  
  73.   I welcome comments directed to my compuserve mailbox or mailed to the
  74.   following address.  Please include where you obtained this program in
  75.   any messages.
  76.  
  77.               John Lindinger         Compuserve ID# 71072,1402
  78.               RD#2 Box 297
  79.               Airville, PA  17302
  80.