home *** CD-ROM | disk | FTP | other *** search
- GENERAL PURPOSE SEARCH PATH DEVICE
- ----------------------------------
-
- Credits:
-
- Most of the legwork for this beast was already done in the form
- of a fine sample dos device by Matt Dillon (his notes are included
- in this distribution as they are still relevant). Thanks Matt
-
- Installation:
-
- copy path-handler to the devs: directory
- append the Mountlist item to your devs:Mountlist file
- *poof* finished.
-
- Usage:
- To make it do it's thing, just use path: as if it were a ram
- disk. Create a file in path: that contains the list of directorys
- you want searched. Say you created a file foo like so:
-
- ram:
- dh0:c/
- dh0:tool/
- df0:c/
- df1:c/
-
- The directories have to start in column 1 of the file and be
- separated by newlines. They must also be absolute path names
- (i.e. they contain a ':') and they must not refer to the path:
- device again (to avoid deadlock). Any line which doesn't meet
- these criteria is ignored when processing that search path.
- Editing your search path is easy, just use your favourite editor.
-
- Once entered the file is ready for use, if you type:
-
- path:foo/more
-
- the system will attempt to open (in order) ram:more, dh0:c/more,
- dh0:tool/more, df0:c/more, and df1:c/more. If you then say
- assign c: path:foo, then presto you're commands will automatically
- be searched for in the right places.
-
- Note that because the path is re-interpreted from the ascii
- every time, the df0: and df1: entries are very late binding,
- they refer to whatever disk happens to be in the drive
- at the time the search happens. If you change disks then the
- new disk will be searched, the old disk will not be requested.
- If you wish to include a specific volume in the search path then
- simply use the volume name and not the device name.
-
-
- Coming Soon: dir path:foo to list all files in the search path
-
- ------------------
-
- Rico Mariani rmariani@watmum.waterloo.edu
-
- Released to the Public Domain
-
-