home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / USE.ZIP / USE.DOC < prev    next >
Text File  |  1989-09-11  |  2KB  |  65 lines

  1.    USE and UNUSE are utility programs for adding and removing
  2. directories from your path, without retyping the entire path.
  3. USE will add a directory to the PATH; UNUSE removes a directory.
  4.  
  5.    If you don't specify a path, USE and UNUSE will print the
  6. current path.  Similarly, if the directory you specify is not in
  7. the path, USE and UNUSE will just print the current path.
  8.  
  9.    By default, USE will put the new directory at the front of the
  10. path.  Starting USE with the switch "/E" or "/B" will put the
  11. directory at the end of the path.  If USE is started with a dir-
  12. ectory already on the path, that directory will be moved to the
  13. front of the path, or the back if the "/E" or "/B" switch is used.
  14.  
  15. Examples:
  16.  
  17. C:\>Rem   Print the current path.
  18.  
  19. C:\>path
  20. PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
  21.  
  22. C:\>Rem   Starting USE without a directory prints the current path.
  23.  
  24. C:\>use
  25. PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
  26.  
  27. C:\>Rem   Add c:\test to the beginning of the path.
  28.  
  29. C:\>use c:\test
  30. PATH=C:\TEST;C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
  31.  
  32. C:\>Rem   Remove c:\test from the path.
  33.  
  34. C:\>unuse c:\test
  35. PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
  36.  
  37. C:\>Rem   C:\DOS is already on the path; it is moved to the front.
  38.  
  39. C:\>use c:\dos
  40. PATH=C:\DOS;C:\UTILITY;C:\NORTON;C:\BATCH
  41.  
  42. C:\>Rem   C:\utility is on the path; /B or /E moves to the back.
  43.  
  44. C:\>use c:\utility /b
  45. PATH=C:\DOS;C:\NORTON;C:\BATCH;C:\UTILITY
  46.  
  47. C:\>Rem   C:\ is not on the path; UNUSE just prints the path.
  48.  
  49. C:\>unuse c:\
  50. PATH=C:\DOS;C:\NORTON;C:\BATCH;C:\UTILITY
  51.  
  52.  
  53.     USE and UNUSE have been tested with DOS versions 2, 3, and 4;
  54. PC DOS, MS DOS, and Epson MS DOS.  However, USE and UNUSE change
  55. the environment area of DOS, and you should test it throughly on
  56. your machine.
  57.  
  58.     This software may be freely used, but not sold for profit.
  59. The user assumes all risk associated with the use of software.
  60. Please include this documentation when distributing this software.
  61.  
  62. September 11, 1989
  63. James Haley
  64. TSA: (219) 478-1164
  65. 71121,3644