Windows Err Msg: You Cannot Run This Application in a Window

Last reviewed: November 23, 1994
Article ID: Q86022
The information in this article applies to:
  • Microsoft Windows operating system versions 3.0, 3.0a, 3.1, 3.11

SYMPTOMS

When attempting to run an MS-DOS-based application in a window or in the background under Microsoft Windows you may receive the following error message:

   You cannot run this application in a window or in the background. You
   can display it in a window, but it will be suspended until you run it
   full screen. Check the PIF settings to ensure they are correct.

CAUSE

This problem is most commonly caused by one of the following:

  • You are loading the Microsoft MS-DOS level mouse driver version 7.04 or later in the AUTOEXEC.BAT (MOUSE.COM) or in the CONFIG.SYS file (MOUSE.SYS).
  • Windows has low system resources. Closing one or more applications may free up enough resources to run the program in a window or in the background.

RESOLUTION

If you are loading the Microsoft Mouse driver 7.04 or later modify the command line for the driver:

  1. Edit AUTOEXEC.BAT or CONFIG.SYS with a standard ASCII text editor such
as Notepad.

  1. Add "/Y" (without the quotation marks) to the end of the mouse line:

    c:\windows\mouse.com /y

    -or-

    device=c:\windows\mouse.sys /y

If Windows is low on system resources, close one or more applications.


KBCategory: kbother kbdisplay kberrmsg
KBSubcategory: win31
Additional reference words: 3.10 err msg


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