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.
Syntax
Section titled “Syntax”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.
Remarks
Section titled “Remarks”This directive is generally available starting with release level 8.1B2.
This directive is available only in Thoroughbred Basic for MS-DOS.
Examples
Section titled “Examples”SETDRIVE 0If 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.
See also
Section titled “See also”DSK system variable
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF