Enabling, Disabling, and Changing Disks
Some operating systems allow access of actual physical disk drives in the file naming scheme. In PRO/5 you can access the disk name (when available) using the format of a single character in the range "A" to "Z" followed by a ":" character to indicate that the preceding is a disk name.
If the operating system supports separately named disk drives PRO/5 will load a list of the available disk drives on the system when started. From this, PRO/5 will search all of the available disks for any file that you reference without a disk name. You may use the DISABLE command to prevent searching a particular disk drive. The ENABLE command is used to re-enable a disk in the list.
The first disk drive searched is the default disk drive. This drive is set on entry to PRO/5 and may be changed using the SETDRIVE command.
If a disk drive is not physically present, yet the host operating system is telling PRO/5 that it is, PRO/5 can generate obscure errors as a result of the automatic search during an OPEN or RUN. The DISABLE command will temporarily remove this drive from the search sequence. If this DISABLE command is necessary each time you start PRO/5 it might be a good idea to place DSKSYN commands into your configuration file to remove drives from the search sequence.
Creating, Erasing and Changing Directories
Subdirectories may be manipulated using the MKDIR (create directory), RMDIR (remove directory), and CHDIR (change directory) commands:
Command |
Description |
CHDIR |
Changes PRO/5's concept of its "current" directory. When you open a file (or RUN/LOAD/CALL a program) PRO/5 always searches the current directory before searching the additional locations named in the PREFIX or ENABLEd disks. |
MKDIR |
Creates the directory. If the directory already exists or the path to the directory does not exist then the MKDIR command will issue an error. |
RMDIR |
Removes an empty directory. If the directory does not exist or is not empty (or otherwise busy), then the directory will not be removed. |