How to get the mouse to work in MS-DOS

Updated: 05/21/2018 by Computer Hope

Note: This document applies to older computers running MS-DOS and not a Windows command line having trouble getting a USB mouse to work in the Windows command line.

Computer MouseFor the mouse to work in an MS-DOS environment, you must have the Microsoft mouse driver loading in your autoexec.bat file or the mouse device driver mouse.sys loading in your config.sys file.

Find the MS-DOS mouse driver

Before placing any information into the Autoexec.bat and Config.sys, you need to locate one of those files on your computer. To locate a file in MS-DOS, type either of the commands below at C:\> prompt.

dir /s


dir mouse.sys /s

Once either of these commands are typed in, you should receive a listing of what directory contains one of the above files. If you get a file not found error, try the alternate command.

Load mouse driver

Once the file has been located on the computer, depending upon what file is found, use one of the examples below.





The above two lines are examples; if either file is located in another directory, you would need to substitute the C:\Windows\ for the directory containing the file.

Additional information