Home > Commands A-M > Configuration L

LASTDRIVE


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Specifies the maximum number of drives you can access. You can use this command only in your CONFIG.SYS file.

The value you specify represents the last valid drive the operating system is to recognize.


Syntax

LASTDRIVE=x


Parameters
x (v3.0)
Specifies a drive letter in the range A through Z.

Switches

none.


Related

none.


Notes

Default setting If you do not use the LASTDRIVE command, the default value is the letter following the last one in use.

Windows NT accepts only for compatibility with MS-DOS. Drives are always set to the maximum (Z).

Effect on memory The operating system allocates a data structure in memory for each drive specified by LASTDRIVE, so you should not specify more drives than are necessary.


Examples

To set the last drive to M, giving your computer access to 13 drives, you would include in your CONFIG.SYS file:

    LASTDRIVE=M

Errorlevels

none.


Availability
External
DOS
v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
none
Windows NT
none

Last Updated: 2004/03/01
Direct corrections or suggestions to: Rick Lively