home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / path / summary.hlp < prev   
Encoding:
Text File  |  1989-01-01  |  1.9 KB  |  38 lines

  1.                             PATH
  2.  
  3. PATH is an internal command that tells DOS to search certain directories when 
  4. looking for a file that ends in .COM, .EXE, or .BAT in addition to the current 
  5. directory.  PATH is useful because many DOS commands, programs not part of DOS,
  6. and batch files are external, which means that they are separate program files.
  7. While DOS external commands usually exist in the same directory as DOS, other
  8. programs will be in other directories. If you set the PATH to search the 
  9. directory that DOS resides in, then your external command will execute no 
  10. matter what the current directory is. Also, commands to execute other programs
  11. will work no matter what the current directory is. A PATH command is typically
  12. included in the AUTOEXEC.BAT file to define the directories DOS should search.
  13.  
  14.     PATH [[d1:]pathname1][;[d2:]pathname2][;...]
  15.  
  16. [[d:]pathname] is the directory to search for a file.
  17.  
  18. Multiple directories are specified for the search by separating several 
  19. [[d:]pathname]'s by semicolons (;). The order of the directory search is 
  20. the same as the order they were specified with the PATH command, but the
  21. current directory is always searched first. Don't use any special characters,
  22. like space or tab, between the pathnames. Remember that . and .. are valid
  23. pathnames.
  24.  
  25. PATH with no options will display the current path. A PATH command can only 
  26. be 127 characters long. A long PATH with many pathnames may exceed this limit. 
  27. A pathname cannot be more than 63 characters long. Careful use of the SUBST 
  28. command before executing PATH can alleviate this limitation. The PATH is 
  29. stored in DOS environment space, so the SHELL line in CONFIG.SYS may need to 
  30. increase the size of DOS environment space if a long PATH is desired. The 
  31. command
  32.  
  33.     SET PATH=x
  34.  
  35. is equivalent to
  36.  
  37.     PATH x
  38.