Dosonly
Prevents users from starting applications other than MS-DOS-based applications from the Command.com prompt.
Syntax
dosonly
Parameters
none
Remarks
-
When you exit an MS-DOS-based application, Windows XP returns to the command interpreter, Cmd.exe. When you run a terminate-and-stay-resident program (TSR) or temporarily suspend an MS-DOS-based application to return to the command prompt, Windows XP runs the command interpreter for the MS-DOS environment, Command.com. 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 XP provides dosonly. With dosonly, you can start only MS-DOS-based applications from the Command.com prompt. You can include dosonly in your Config.nt file or the equivalent custom startup file in an application's program information file (PIF).
-
Config.nt is used to initialize the MS-DOS environment, unless you specify a different startup file in an application's PIF.
Examples
Include dosonly in your Config.nt file, or the Config startup file specified in the PIF. The following example shows how a Config.nt might look.
dos=high,umb device=%systemroot%\system32\himem.sys files=40 @echo off dosonly
