qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_dos_setdrive
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _dos_setdrive routine uses system call 0x0E to set the current
     default drive to the <drive> argument: 1=drive A, 2=drive B, and
     so on. The <numdrives> argument indicates the total number of
     drives in the system. If this value is 4, for example, it does not
     mean the drives are designated A, B, C, and D; but only that four
     drives are in the system.
 
     Return Value
 
     There is no return value. If an invalid drive number is passed,
     the function fails without indication. Use the _dos_getdrive
     routine to verify whether the desired drive has been set.
                                    -♦-