Home > Commands A-M > Commands Da-Dr

DOSONLY


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Prevents starting applications other than MS-DOS-based applications from the COMMAND.COM prompt.


Syntax

DOSONLY


Parameters

none.


Switches

none.


Related

none.


Notes

Normally, when you exit an MS-DOS-based application, Windows NT returns to the Windows NT command interpreter, CMD.EXE. However, by default, when you run a TSR or temporarily suspend an MS-DOS-based application to return to the command prompt, Windows NT runs COMMAND.COM, the command interpreter for the MS-DOS environment. This preserves the MS-DOS environment, allowing you to use the TSR immediately.

Because starting and running other types of applications from the COMMAND.COM prompt can disrupt a TSR or suspended MS-DOS-based application, Windows NT provides the DOSONLY command. The DOSONLY command allows only MS-DOS-based applications to be started from the COMMAND.COM prompt. You can include the DOSONLY command in your CONFIG.NT file or the equivalent custom startup file in an application PIF.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none.
Windows
none.
Windows NT
NT3.1 NT3.5 NT3.51

Last Updated: 2006/12/01
Direct corrections or suggestions to: Rick Lively 1