Cannot Start a Windows-Based Program from MS-DOS Prompt

Last reviewed: August 30, 1996
Article ID: Q134489
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you try to start a Windows-based program from an MS-DOS prompt by typing

   START <winapp>

   -or-

   <winapp>

where <winapp> is the name of the program, the program does not run, and you receive the following error message:

   This program cannot be run in DOS mode.

CAUSE

The MS-DOS window is configured to prevent MS-DOS based programs from detecting Windows.

RESOLUTION

Change the configuration of the MS-DOS window. To change the configuration, follow these steps:

  1. Start MS-DOS Prompt.

  2. In the MS-DOS Prompt dialog box, click the Properties button.

  3. In the MS-DOS Prompt Properties dialog box, click the Program tab, and then click the Advanced button.

  4. In the Advanced Program Settings dialog box, make sure the "Prevent MS-DOS-based programs from detecting Windows" box is not checked, and then click the OK button.

  5. Quit MS-DOS, and then restart it.


KBCategory: kbinterop kbusage kbui
KBSubcategory: posfest win95 appscomp
Additional reference words: 95 start begin box execute


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: August 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.