Loading a Microsoft Mouse Driver from a PIF File

Last reviewed: November 21, 1994
Article ID: Q69337
The information in this article applies to:
  • Microsoft Windows operating system versions 3.0, 3.0a, 3.1, 3.11
  • Microsoft Mouse Driver for MS-DOS, versions 6.x and 7.x

SUMMARY

If you load a Microsoft MOUSE.SYS or MOUSE.COM mouse driver from MS-DOS prior to starting Microsoft Windows, the mouse pointer stops responding (freezes) after you start Windows.

Try loading the mouse driver by running a batch file when you start the MS-DOS application. Unload the mouse driver after you exit the MS-DOS application. i NOTE: This information applies to Microsoft Mouse driver versions 7.04 and earlier only. It does not apply to later versions. (Later versions of the Mouse driver cannot be loaded in an MS-DOS session from a batch file.)

MORE INFORMATION

To create the batch file, use the following steps:

  1. Remove the "Device=mouse.sys" command from the CONFIG.SYS file or the MOUSE.COM command from the AUTOEXEC.BAT file.

  2. Create a batch file that first loads the mouse driver, then starts the MS-DOS application. Remove the mouse driver from memory when you exit the program. For example:

          PROGRAM.BAT
    

          mouse /y
    
          program.exe     (Where program.exe is the executable filename
          mouse off        for the MS-DOS application.)
    
       The last line of PROGRAM.BAT is a command that unloads the
       Microsoft mouse driver from memory.
    
    

  3. Create a PIF file for the batch file.

REFERENCES

"Microsoft Windows User's Guide" for Version 3.0, "Creating PIFs for Batch Files," page 448.


KBCategory: kbusage kbhw
KBSubcategory: win30 win31
Additional reference words: 3.0 3.0a 3.00 3.00a 3.10 3.11


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: November 21, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.