SETDRIVE Verb
Syntax
SETDRIVE disk{,ERR=lineref}
Description
The SETDRIVE verb changes the default disk.
Parameter |
Description |
disk |
Disk to be set as the default. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
The default drive used by PRO/5 is the current drive identified by the operating system. For example, on MS-DOS systems, if your current drive is "C" and you invoke PRO/5 by typing A:PRO5, PRO/5 uses drive "C" as the default. If the disk cannot be found, PRO/5 takes the optional ERR= branch and does not change the original default disk.
Examples
1000 LET A=F; SETDRIVE A,ERR=9500
1000 LET DEFAULT=F
1010 SETDRIVE DEFAULT,ERR=9500
1020 END
9500 PRINT "Cannot set default drive to F:";END
1000 SETDRIVE "A",ERR=9500
1010 END
9500 PRINT "Cannot default to A:";END
1000 SETDRIVE "A",ERR=9500