Skip to content

SETDRIVE

Change Default MS-DOS Disk

This directive is available only in MS-DOS and changes the default logical disk directory used in file name searches.

SETDRIVE disk-specifier [,ERR=line-ref|,ERC=error-code]
disk-specifier
is a positive integer-value or string-value containing the name of a logical disk directory.
line-ref
is the program line number or label to branch to if this directive produces an error.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This directive is generally available starting with release level 8.1B2.

This directive is available only in Thoroughbred Basic for MS-DOS.

SETDRIVE 0

If the IPLINPUT file DEV line for logical disk directory D0 specified C. This directive has the same function as the MS-DOS command CD C:.

SETDRIVE "C"

performs the same function as the first example.

DSK system variable

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF