Each CLI process created by AmigaDOS has a so called "command path list"
a list of directories which is used to find the commands the process
wants to run. It can be controlled from scripts with the CLI command
"path".
Programs can also supply a path list to a CreateNewProc() call which is
used to create new CLI processes. Unfortunately the data structures for
AmigaDOS path lists don't appear anywhere in the official documentation.
Also no support routines for handling path lists are available in the
dos.library.
If you need to handle path lists in your program then the dospath.library
can help you. It offers support routines for:
- Copying an existing path list
- Building a path list from a list of directory names
- Copying the path list of the Workbench process
- Freeing a path list
- Remove a directory from a path list
- Set and get the path list of a process
- Find a file using a path list
|