Home > Commands A-M > Configuration Da-Dr

DEVICE


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

Loads the device driver you specify into memory. You can use this command only in your CONFIG.SYS file.


Syntax

DEVICE=[drive:][\path\]filename parameters


Parameters
[drive:][\path\] (v3.0)
Specifies the location of the device driver file.
filename (v3.0)
Specifies the name of the device driver file.
parameters (v3.0)
Specifies any command-line information required by the device driver.

Switches

none.


Related

For information about loading device drivers into the upper memory area, see the DEVICEHIGH command.
ANSI.SYS
DISPLAY.SYS
DRIVER.SYS
DRVSPACE.SYS
EGA.SYS
EMM386.EXE
HIMEM.SYS
INTERLNK.EXE
POWER.EXE
RAMDRIVE.SYS
SETVER.EXE
SMARTDRV.EXE


Notes
Using standard device drivers

The standard installable device drivers provided with the operating system are:

The files COUNTRY.SYS and KEYBOARD.SYS are not device drivers. They are data files for the COUNTRY and KEYB commands, respectively. Do not try to load either of these files with the DEVICE command. If you do, your system halts, and you cannot restart the operating system. For information about loading COUNTRY.SYS, see the COUNTRY command. For information about loading KEYBOARD.SYS, see the KEYB command.


Installing device drivers for other products

When you purchase a mouse, a scanner, or a similar product, the manufacturer usually includes device-driver software. To install a device driver, specify its location and name on a DEVICE command line.


Installing a third-party console driver

If you install both DISPLAY.SYS and a third-party console driver, such as VT52.SYS, the third-party device driver must be installed first. Otherwise, the third-party device driver may disable DISPLAY.SYS.


Installing multiple device drivers

Sometimes one installable device driver will require that it be loaded before or after another in your CONFIG.SYS file. EMM386.EXE requires HIMEM.SYS to be loaded first. If the device driver requires that another device driver be loaded before it, make sure the commands are listed in the correct order in your CONFIG.SYS file.


Examples

If you plan to use an ANSI escape sequence to control the screen and keyboard, you should add the following command to your CONFIG.SYS file (assuming the operating system files are in the DOS directory on drive C):

    DEVICE=C:\DOS\ANSI.SYS

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