Microsoft Mouse Setup and Read-Only AUTOEXEC.BAT File

Last reviewed: September 16, 1996
Article ID: Q79204
The information in this article applies to:
  • Microsoft Mouse Driver for MS-DOS, versions 7.x, 8.x, and 9.0

SYMPTOMS

If the attribute for the AUTOEXEC.BAT file is read-only, Microsoft Mouse Setup copies all the appropriate files to the hard disk, but Setup then displays a message similar to the following:

   The Microsoft Mouse software was successfully copied onto
   your disk. However, SETUP can not complete the installation
   process because

      C:\AUTOEXEC.BAT

   is a Read-Only file and cannot be modified by SETUP.

   To allow SETUP to complete the installation, you must change
   this file to have read and write permission, then run SETUP
   again.

   For more information on Read-Only files, please refer to the
   "ATTRIB" in your DOS manual.

   When ready, press Q to Quit.

CAUSE

If the attribute for the AUTOEXEC.BAT file is set to read-only, the Microsoft Mouse Setup program does not edit the AUTOEXEC.BAT file. This prevents the Microsoft Mouse software from loading automatically.

RESOLUTION

Remove the read-only attribute, then run Setup again.

NOTE: If you are running the Stacker program, see the section titled "Stacker," later in this article.

Changing File Attributes in MS-DOS

  1. In the root directory (for example, C:\), type the following at the MS-DOS command prompt and then press ENTER:

          attrib autoexec.bat
    

    If the file is read-only, the following is displayed:

          R   C:\AUTOEXEC.BAT
    
       NOTE: The "R" in the above message indicates the file is read-only.
       If an R is not displayed, the problem with Setup not editing the
       AUTOEXEC.BAT file is occurring for some other reason.
    
    

  2. To remove the read-only attribute from the AUTOEXEC.BAT file, type the following at the MS-DOS command prompt and then press ENTER:

          attrib -r autoexec.bat
    

  3. To verify that the file now has the read/write attribute, type the following at the MS-DOS command prompt and then press ENTER:

          attrib autoexec.bat
    

    If the file is changed correctly, the R indicating the file is read-only should not be displayed.

Changing File Attributes in Windows

  1. In Windows, select the File Manager icon.

  2. Select the root directory (for example, drive C), and highlight the AUTOEXEC.BAT file.

  3. From the File menu, choose Change Attributes.

    If this file is a read-only file, the read-only option box is selected.

    NOTE: If the read-only option is not selected, the problem with Setup not editing the AUTOEXEC.BAT file is occurring for some other reason.

  4. To change the file attributes, deselect the Read-Only option box if it is enabled. This allows you to edit the AUTOEXEC.BAT file.

Once the AUTOEXEC.BAT file has the read/write attribute, run the Microsoft Mouse Setup disk again, and choose to load the Microsoft Mouse driver software automatically.

MORE INFORMATION

Stacker

The Stac Electronics Stacker program works with read-only AUTOEXEC.BAT files. If you are running this program, contact Stac Electronics to determine how Stacker has affected the Mouse Setup program.

The Stacker product included here is manufactured by a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.


KBCategory: kbhw kb3rdparty
KBSubcategory:
Additional reference words: autoexec install problems msetup error stack


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.