====================================================================== Microsoft(R) Product Support Services Application Note (Text File) PD0462: MOUSE DOESN'T WORK WITH MS-DOS(R) SHELL ====================================================================== Revision Date: 04/93 No Disk Included The following information applies to Microsoft MS-DOS 5.0 Upgrade, 6.0 Upgrade. -------------------------------------------------------------------- | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY | | ACCOMPANY THIS DOCUMENT (collectively referred to as an | | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO | | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A | | PARTICULAR PURPOSE. The user assumes the entire risk as to the | | accuracy and the use of this Application Note. This Application | | Note may be copied and distributed subject to the following | | conditions: 1) All text must be copied without modification and | | all pages must be included; 2) If software is included, all files | | on the disk(s) must be copied without modification [the MS-DOS | | utility DISKCOPY is appropriate for this purpose]; 3) All | | components of this Application Note must be distributed together; | | and 4) This Application Note may not be distributed for profit. | | | | Copyright 1991-1993 Microsoft Corporation. All Rights Reserved. | | Microsoft and MS-DOS are registered trademarks and Windows | | is a trademark of Microsoft Corporation. | | Hewlett-Packard is a registered trademark of Hewlett-Packard | | Company. | | IBM and PS/2 are registered trademarks of International Business | | Machines Corporation. | | Logitech is a trademark of Logitech, Inc. | -------------------------------------------------------------------- INTRODUCTION ============ This application note discusses the symptoms associated with your mouse not working correctly with MS-DOS Shell, the cause of this problem, and how to correct this behavior. SYMPTOMS ======== When you use MS-DOS Shell, your mouse moves erratically, or the mouse pointer doesn't appear at all. Or, the following dialog box appears when you start MS-DOS Shell for the first time: Warning: You do not have a current mouse driver. This driver may cause your system to stop or cause other problems with MS-DOS Shell. Contact your vendor to get more information or a driver that will work with MS-DOS Shell. NOTE: If the dialog box appeared earlier and you now want to disable or re-enable your mouse, you must modify your DOSSHELL.INI file. For more information about modifying DOSSHELL.INI, see the "Disabling and Re-Enabling Your Mouse with MS-DOS Shell" section in this application note. CAUSE ===== Your mouse might not work properly with MS-DOS Shell or MS-DOS Editor due to an incompatible mouse driver. (A mouse driver is a file that enables your computer to interpret your mouse movements. Every mouse should come with its own mouse driver.) Some earlier mouse drivers do not work well with MS-DOS Shell because they cannot perform all the functions required by MS-DOS Shell. Also, using the wrong mouse driver for your mouse can cause some problems due to hardware differences. SOLUTION ======== If you have no mouse pointer at all, follow Procedure 1. If you do have a mouse pointer, but it moves erratically or not at all, or if the "You do not have a current mouse driver...." dialog box appears, perform Procedure 2. PROCEDURE 1 ----------- To determine whether you have properly installed a mouse driver NOTE: The following steps assume your mouse uses a driver called MOUSE.SYS or MOUSE.COM. If you don't find either file on your hard disk, check the documentation that came with your mouse for the correct driver name and use it wherever appropriate. 1. At the MS-DOS command prompt, type the following and press ENTER after each line : cd :\ dir mouse.* /s where is your hard disk drive. (If you have more than one hard disk drive, perform this command for all the hard disks on your system.) For example, if your hard disk is drive C, type the following command and press ENTER after each line: c: cd c:\ dir mouse.* /s MS-DOS displays the location of all mouse files on the drive. 2. Make sure you have either the MOUSE.COM or MOUSE.SYS file, and note which directory contains the file. If you have more than one hard disk drive, check each drive for these files. If you don't have either of these files on your hard disk, copy them from the floppy disk that came with your mouse. 3. Use a text editor to open your CONFIG.SYS file (if you have MOUSE.SYS) or your AUTOEXEC.BAT file (if you have MOUSE.COM). If you want to use MS-DOS Editor, type the following at the MS-DOS command prompt and press ENTER edit :\config.sys -or- edit :\autoexec.bat where is the startup drive where either AUTOEXEC.BAT or CONFIG.SYS currently resides. For example, if your startup drive is drive C, type the following command: edit c:\config.sys -or- edit c:\autoexec.bat 4. Check the file you open to make sure it contains a command for starting your mouse and that the location of your mouse file is the same as the location specified in the command Also, make sure your path points to the most current version of your mouse files. If you have MOUSE.SYS, a command similar to the following should be in your CONFIG.SYS file device=:\mouse.sys where path is the path to your MOUSE.SYS file. For example, if MOUSE.SYS is located in the MOUSE directory on drive C, a command like the following should be in your CONFIG.SYS file: device=c:\mouse\mouse.sys If you have MOUSE.COM, a command similar to the following should be in your AUTOEXEC.BAT file :\mouse.com where is the path to your MOUSE.COM file. For example, if MOUSE.COM is located in the MOUSE directory on drive C, a command like the following should be in your AUTOEXEC.BAT file: c:\mouse\mouse.com 5. Save the file and quit the text editor. If you're using MS-DOS Editor, choose Exit from the File menu. When MS-DOS Editor displays a dialog box prompting you to save your file, choose the Yes button or press ENTER. 6. If you modified your CONFIG.SYS or AUTOEXEC.BAT file, restart your computer by pressing CTRL+ALT+DEL. 7. Start MS-DOS Shell to determine whether this solved the problem. If Procedure 1 does not solve the problem, perform Procedure 2. PROCEDURE 2 ----------- To determine whether your mouse driver is compatible with MS-DOS Shell 1. Determine the version number of your mouse driver. For some mouse drivers, you can find out what version you have by typing "mouse" (without the quotation marks) at the MS-DOS command prompt. Or, observe the message your computer displays when your mouse driver starts. If your mouse driver starts from your CONFIG.SYS or AUTOEXEC.BAT file, as is usually the case, the message appears when you start your computer. This message often includes the version number. 2. Ensure your mouse driver is compatible with MS-DOS. The following is a list of compatible mouse drivers: Type of Mouse Compatible Versions ------------- ------------------- Genius 9.06 or later Hewlett-Packard(R) 7.04 or later IBM(R) PS/2(R) 7.04 or later Logitech(TM) 5.01 or later Microsoft 6.21 or later Mouse Systems 7.01 or later 3. If your mouse driver is not on this list, contact your vendor for an updated driver. If you have a Microsoft Mouse and MS-DOS Upgrade version 5.0a (MS-DOS file dates of 11/11/91) or 6.0, you can install a compatible mouse driver from your MS-DOS installation disks by doing the following: a. Perform Procedure 1 to determine if you are loading MOUSE.COM or MOUSE.SYS and where the mouse driver you are currently using is located. b. MS-DOS 5.0a and 6.0 both ship with MOUSE.COM only. If you found in Procedure 1 that you are using MOUSE.SYS, you'll need to disable the command in CONFIG.SYS by changing it to resemble the following rem device=:\mouse.sys where is the path to MOUSE.SYS. For example, if MOUSE.SYS is located in the MOUSE directory on drive C, the command should appear as follows: rem device=c:\mouse\mouse.sys The REM command stands for "remark" and tells MS-DOS to ignore the command it precedes. Then add a line to your AUTOEXEC.BAT file using the same location for the path as you found in Procedure 1. It should look similar to the following line :\mouse.com where is the path to MOUSE.COM. For example, if MOUSE.COM is located in the MOUSE directory on drive C, use the following line: c:\mouse\mouse.com c. To determine which MS-DOS installation disk contains the new mouse driver, insert the disk containing the PACKING.LST file in your floppy disk drive. To find the disk containing the PACKING.LST file, use the following chart: MS-DOS 5.0a Disk Number ----------- ----------- 5.25-inch 1.2 MB 1 5.25-inch 360K 3 3.5-inch 720K 3 MS-DOS 6.0 Disk Number ---------- ----------- 5.35-inch 1.2 MB 1 3.5-inch 1.44 MB 1 d. Type the following at the MS-DOS command prompt and press ENTER to see the contents of each installation disk type :\packing.lst | more where is the floppy disk drive containing the installation disk. For example, if the installation disk is in drive A, type the following command: type a:\packing.lst | more NOTE: MOUSE.COM will appear as MOUSE.CO_ because it is a compressed file. e. Insert the MS-DOS installation disk containing MOUSE.CO_ in your floppy disk drive. f. To expand the compressed mouse driver file and copy it to your hard disk drive, you must use the EXPAND command. For example, type the following at the MS-DOS command prompt and press ENTER after each line : expand mouse.co_ :\mouse.com where is the floppy disk drive containing the installation disk and is the path to the directory where your current mouse driver resides. For example, if the installation disk is in floppy disk drive A and your current mouse driver is located in the root directory of drive C, type the following commands and press ENTER after each command: a: expand mouse.co_ c:\mouse.com You now have an MS-DOS Shell compatible mouse driver installed for your Microsoft Mouse. To start using your mouse, remove any disks from your floppy disk drive and restart your computer by pressing CTRL+ALT+DEL. DISABLING AND RE-ENABLING YOUR MOUSE WITH MS-DOS SHELL ======================================================= If the "You do not have a current mouse driver..." dialog box appeared the first time you started MS-DOS Shell, you had the choice of disabling the mouse or using the mouse anyway. MS-DOS Shell recorded your choice in a file called DOSSHELL.INI, which contains information about how MS-DOS Shell appears on your system. NOTE: If you just installed a new mouse driver, you do not need to manually edit the DOSSHELL.INI file to enable the new mouse driver. MS-DOS Shell will automatically update the DOSSHELL.INI file the next time you start it. If you chose the Disable Mouse option, MS-DOS Shell added the following line to your DOSSHELL.INI file: mouseinfo=,disabled However, if you chose the Use Mouse Anyway option, MS-DOS Shell added this line: mouseinfo=,ignore The parameter represents the version number of the mouse driver MS-DOS Shell detected on your system. To either enable or disable your mouse, you must manually change the "mouseinfo=" (without the quotation marks) line in the DOSSHELL.INI file. If you originally chose Disable Mouse, and you want to enable your mouse, follow this procedure: 1. Use a text editor to open your DOSSHELL.INI file. If you want to use MS-DOS Editor, type the following at the MS-DOS command prompt and press ENTER edit :\\dosshell.ini where is your hard disk drive and is your MS- DOS directory. For example, if your hard disk is drive C and your MS-DOS directory is called DOS, type the following command: edit c:\dos\dosshell.ini 2. Find the "mouseinfo=" (without the quotation marks) line and change it to read as follows mouseinfo=,ignore where is the version number of the mouse driver MS-DOS Shell detected on your system. 3. Save the file and quit the text editor. If you're using MS-DOS Editor, choose Exit from the File menu. When MS-DOS Editor displays a dialog box prompting you to save your file, choose the Yes button or press ENTER. If you originally chose Use Mouse Anyway and you want to disable your mouse, follow this procedure: 1. Use a text editor to open your DOSSHELL.INI file. If you want to use MS-DOS Editor, type the following at the MS-DOS command prompt and press ENTER edit :\\dosshell.ini where is your hard disk drive and is your MS- DOS directory. For example, if your hard disk is drive C and your MS-DOS directory is called DOS, type the following command: edit c:\dos\dosshell.ini 2. Find the "mouseinfo=" (without the quotation marks) line, and change it to read as follows: mouseinfo=,disabled 3. Save the file and quit the text editor. If you're using MS-DOS Editor, choose Exit from the File menu. When MS-DOS Editor displays a dialog box prompting you to save your file, choose the Yes button or press ENTER. RELATED INFORMATION =================== For information about using MS-DOS Shell, see Chapters 3 and 8 of the "Microsoft MS-DOS User's Guide and Reference" for version 5.0 or Chapter 2 of the "Microsoft MS-DOS User's Guide" for version 6.0.