DISABLE Verb - Disable Disk Access
Syntax
DISABLE disk{,ERR=lineref}
Description
The DISABLE verb prevents the specified disk from being accessed. A disk may only be DISABLED if no files on that disk are currently OPENed by an application.
Parameter |
Description |
---|---|
disk |
A valid disk. The parameter argument may be a number or a string. A numeric argument must evaluate to a meaningful integer, where 0 = drive A:, 1 = drive B:, and so on. A string argument must contain the desired drive letter, and, optionally, a colon (:). If any files on the disk are currently opened by an application, it cannot be disabled. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
Using DISABLE if a file is open on the specified disk results in an !ERROR=0. Close all files to correct the error. If the disk has already been disabled, an !ERROR=14 results. If the disk has been disabled by a dsksyn in the config.bbx file, an !ERROR=17 results. See PRO/5 Disk Configuration in the Installation and Configuration Guide for additional information.
Examples
0500 DISABLE "C:"
1000 LET A=4; DISABLE A,ERR=9500
1000 DISABLE "A",ERR=9500
Note the difference between DISABLE A and DISABLE "A".