DSK() Function - Get Disk Configuration
Syntax
DSK(disk{,ERR=lineref})
Description
The DSK() function determines the current default disk drive as well as which drives are configured.
Parameter |
Description |
---|---|
disk |
A valid disk.
Using DSK("") returns the current default drive as a
string, such as "A:" or "B:". |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
If the disk is not valid, an !ERROR=17
is produced.
Some host systems do not use disk names; however, it is possible that the
installer of PRO/5 chose to emulate the disks within PRO/5. For additional
information, see PRO/5
Disk Configuration in the Installation
and Configuration Guide.
Examples
1000 PRINT "Current disk drive: "+DSK("")