Loading a Microsoft Mouse Driver from a PIF File

ID: Q69337


The information in this article applies to:
  • Microsoft Windows versions 3.0, 3.0a, 3.1, 3.11
  • Microsoft Mouse driver for MS-DOS, versions 6.x, 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.

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.

Additional query words: 3.0 3.0a 3.00 3.00a 3.10 3.11

Keywords :
Version : MS-DOS:6.x,7.x; WINDOWS:3.0,3.0a,3.1,3.11
Platform : MS-DOS WINDOWS
Issue type :


Last Reviewed: October 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.