home *** CD-ROM | disk | FTP | other *** search
/ Eagle Eye CD-ROM BBS Network / eagle-eye-cdrom-bbs-network.iso / xplore / pathinfo.txt < prev    next >
Text File  |  1993-04-13  |  6KB  |  102 lines

  1.  
  2.              INFORMATION ON THE DOS ENVIRONMENT PATH STRING
  3.              ----------------------------------------------
  4.  
  5.         If you elect to store all your archive system programs and DOC
  6.    files in one directory and you specify that directory in the AM
  7.    configuration dialog input field named "CompDir:", you need not
  8.    worry about the DOS path.  Similarly, if you configur AM with the
  9.    full path name of the other support files such as the external file
  10.    editor, browser, etc., you need not worry about those programs being
  11.    on the DOS path.
  12.  
  13.         All versions of PC and MS DOS above 1.x maintain an area in
  14.    memory called the environment.  The environment contains a series of
  15.    text strings that are used by DOS and applications programs for
  16.    various purposes.  You can see what strings are currently in the
  17.    enviroment by typing SET and pressing <RETURN> from the DOS level.  As
  18.    a minimum, the environment will contain the string COMSPEC= followed
  19.    by a DOS directory path and (usually) COMMAND.COM.  Most hard disk
  20.    equipped machines will show the following COMSPEC string:
  21.  
  22.                        COMSPEC=C:\COMMAND.COM
  23.  
  24.         Other strings that frequently appear in the environment are the
  25.    PROMPT= and PATH= strings.  Control of the environment is effected
  26.    through the DOS SET command, which may be entered at the DOS level or
  27.    from a batch (like AUTOEXEC.BAT) file.  For example, if a user desired
  28.    that DOS used a copy of COMMAND.COM that was in a directory named
  29.    C:\DOS, he/she might place the command SET COMSPEC=C:\DOS\COMMAND.COM
  30.    in the AUTOEXEC.BAT file.  After booting, DOS would load COMMAND.COM
  31.    from C:\DOS each time it needed to reload the command interpreter.
  32.    All other copies of COMMAND.COM in the system would be superfluous and
  33.    ignored by DOS.
  34.  
  35.         One very useful string that can be placed in the DOS environment
  36.    by the user is the PATH= string.  When the name of an executable file
  37.    is issued from the DOS level, DOS will first look in the current
  38.    subdirectory for the file.  If it finds it, it loads and executes it
  39.    and all is fine.  If it cannot find the file in the current directory,
  40.    DOS will search the environment for the PATH= designator.  If one
  41.    exists, DOS will search the directories in the PATH= string for the
  42.    executable file.  For example, suppose that the AUTOEXEC.BAT contains
  43.    the command SET PATH=C:\DOS;D:\UTIL;E:\JUNK. Note that directory path
  44.    names are separated by semicolons and can (and should) include the
  45.    drive designator.  Now further suppose that the user is in a directory
  46.    named D:\SOMENAME and desires to run the program MYPROG.EXE but
  47.    MYPROG.EXE is not resident in D:\SOMENAME. When the user enters MYPROG,
  48.    DOS, unable find it in the current directory, starts searching the
  49.    directories in the PATH= string starting with C:\DOS.  If MYPROG.EXE
  50.    was in D:\UTIL, DOS would load and execute the program and D:\UTIL
  51.    would be the active directory when the program received control from
  52.    DOS.  Obviously, if DOS cannot find MYPROG.EXE in any of directories in
  53.    the PATH= string, the message BAD COMMAND OR FILENAME will be
  54.    displayed.  The exact same sequence is followed if a running program
  55.    calls DOS to execute a program.
  56.  
  57.         Each Identifier in the DOS path string MUST be unique.  For
  58.    example, consider the path identifier C:\UTIL\DOS\MYDIR.  Placing
  59.    this string in the DOS path string will NOT automatically place the
  60.    the dirctories C:\UTIL and C:\UTIL\DOS in the DOS path.  Each must
  61.    be uniquely identified by the correct path name.  For each of these
  62.    directories to be identified in the DOS path, the following would
  63.    be entered:
  64.  
  65.                     C:\UTIL;C:\UTIL\DOS;C:\UTIL\DOS\MYDIR
  66.  
  67.         You may have multiple path strings in your AUTOEXEC.BAT file but
  68.    only the last PATH= string is valid.  To ensure that you have the path
  69.    string the way you want it, type PATH and press "Enter" at the DOS
  70.    level.  Also, it is important to include the DOS logical drive
  71.    specification ("C:" or "D:") with each directory.
  72.  
  73.         ArcMaster depends upon the presence of an archive system's
  74.    executable files (PAK.EXE, ARJ.EXE, PKZIP.EXE, etc.). It calls these
  75.    programs by using the command sequence just described and therefore
  76.    will not function properly unless these programs are in a directory
  77.    specified in the PATH= string.  The simplest thing to do is to place
  78.    your archive system files and LIST.COM in one subdirectory and place
  79.    its DOS path name in the environment.  For example, suppose you are
  80.    using PKWare and you place PKZIP, PKUNXIP, and LIST in a directory
  81.    named C:\ARCUTILS.  Placing the following line in your AUTOEXEC.BAT
  82.    file and rebooting will ensure that ArcMaster will function properly:
  83.  
  84.                            PATH=C:\ARCUTILS
  85.  
  86.    Obviously, the PATH= string can contain other directory path names and
  87.    you may already have a PATH= command in your AUTOEXEC.BAT file.  If
  88.    so, just add the directory containing the archive system files to the
  89.    string.  For maximum speed, make it the first directory name in the
  90.    string.
  91.  
  92.         If you are having difficulty determining which archive system
  93.    program and support files are in the current DOS PATH, run
  94.    ArcMaster and press Ctrl+F2.  A window containing a list of the
  95.    various executable files that might be used by ArcMaster is
  96.    displayed with an indication of where in the DOS path it was
  97.    found.
  98.  
  99.         Remember, any time you see the message "Bad command or file name"
  100.    it is DOS telling you that you do not have the called program in the
  101.    path.
  102.