Used to designate the maximum number of drives (real and virtual) recognized by the operating system.
The LASTDRIVE command can only be invoked from Config.sys.
|x||A single letter (A to Z) representing the last valid drive that MS-DOS is to recognize. |
(Default is Z)
Note: a trailing colon should not be included.
- Whatever letter is specified in a LASTDRIVE statement, all system drives along with any other drives specified in config.sys are automatically included. Thus, if a system has two hard drives (C: and D:)and a CD-ROM (E:), the line:
would be interpreted as:
- If the DOS command is used to manage the upper memory blocks (it usually is), the default values for LASTDRIVE are automatically loaded into the HMA. ie. the line
is invoked without needing to be explicitly stated.
- If an invalid character (such as a trailing colon) is included, the minimum number of drives (as outlined in Note 1) are included. No error message is displayed.