home *** CD-ROM | disk | FTP | other *** search
- SETPATH is derived from PATH and differs primarily in that it supports an
- additional syntax form as follows:
-
- SETPATH [option element-list] ... [option element-list]
-
- where the following options are supported:
-
- /C Clear path and put in new element list
- /P Prefix list of elements to the beginning of the current path
- /A Append list of elements to the end of the current path
- /D Delete listed elements from the path starting from the
- beginning of the current path
- /R Remove listed elements from the path starting from the
- end of the current path
-
- Here are some examples of these commands. Assume that the initial path is
- "A0 $$ A0" before each of these commands is executed.
-
- command: SETPATH /A A15
- resulting path: A0 $$ A0 A15
-
- command: SETPATH /P A1 B1
- resulting path: A1 B1 A0 $$ A0
-
- command: SETPATH /D A0
- resulting path: $$ A0
-
- command: SETPATH /R A0
- resulting path: A0 $$
-
- command: SETPATH /P A1 /R A0 /A A$
- resulting path: A1 A0 $$ A$
-
-
- SETPATH performs each operation independently. Consequently, the command
-
- SETPATH /P A1 /A B1
-
- is equivalent to the command
-
- SETPATH /P B1 A1
-
- and NOT SETPATH /P A1 B1
-
-
-
- The temporary prefix and temporary append buffers are each limited in size
- to the size of the system's symbolic path buffer.
-
-
- SETPATH sets the program error flag in the ZCPR3 message buffer to reflect
- the result of the command operation. If all succeeded, the error flag is
- cleared to a value of zero. Otherwise it is set to one of the following
- values to show the type of error that occurred:
-
- 1. there is no external path buffer
- 2. the wheel byte is not set
- 3. an illegal option was specified
- 4. the final path is empty
- 5. too many elements for the temporary path buffer
- 6. too many elements in final symbolic path
- 7. too many elements in the temporary prefix buffer
- 8. too many elements in the temporary append buffer
- 9. bad path expression (e.g., nonexistent directory name
-