home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d177 / path.lha / Path / PATH.DOC < prev    next >
Text File  |  1989-02-04  |  2KB  |  60 lines

  1.             GENERAL PURPOSE SEARCH PATH DEVICE
  2.             ----------------------------------
  3.  
  4. Credits:
  5.  
  6.     Most of the legwork for this beast was already done in the form
  7.     of a fine sample dos device by Matt Dillon (his notes are included
  8.     in this distribution as they are still relevant).  Thanks Matt
  9.  
  10. Installation:
  11.  
  12.     copy path-handler to the devs: directory
  13.     append the Mountlist item to your devs:Mountlist file
  14.     *poof* finished.
  15.  
  16. Usage:
  17.     To make it do it's thing, just use path: as if it were a ram
  18.     disk.  Create a file in path: that contains the list of directorys
  19.     you want searched.  Say you created a file foo like so:
  20.  
  21. ram:
  22. dh0:c/
  23. dh0:tool/
  24. df0:c/
  25. df1:c/
  26.  
  27.     The directories  have to start in column 1 of the file and be
  28.     separated by newlines.  They must also be absolute path names
  29.     (i.e. they contain a ':') and they must not refer to the path:
  30.     device again (to avoid deadlock).  Any line which doesn't meet
  31.     these criteria is ignored when processing that search path.
  32.     Editing your search path is easy, just use your favourite editor.
  33.  
  34.     Once entered the file is ready for use, if you type:
  35.  
  36.     path:foo/more
  37.  
  38.     the system will attempt to open (in order) ram:more, dh0:c/more,
  39.     dh0:tool/more, df0:c/more, and df1:c/more.   If you then say
  40.     assign c: path:foo, then presto you're commands will automatically
  41.     be searched for in the right places.
  42.  
  43.     Note that because the path is re-interpreted from the ascii
  44.     every time, the df0: and df1: entries are very late binding,
  45.     they refer to whatever disk happens to be in the drive
  46.     at the time the search happens.  If you change disks then the
  47.     new disk will be searched, the old disk will not be requested.
  48.     If you wish to include a specific volume in the search path then
  49.     simply use the volume name and not the device name.
  50.  
  51.  
  52.     Coming Soon: dir path:foo to list all files in the search path
  53.  
  54.     ------------------
  55.  
  56.             Rico Mariani    rmariani@watmum.waterloo.edu
  57.  
  58.                 Released to the Public Domain
  59.  
  60.