User`s guide

176 ROM-DOS Commands
MX1 Reference Guide E-EQ-MX1RG-D
Examples
CHKDSK will check the integrity of drive A. The report will be printed to the console.
CHKDSK a:
CHKDSK will check the integrity of RAM disk D. The report will be saved in a file called
DRIVE_D.RPT.
CHKDSK d: >drive_d.rpt
COMMAND.COM
Type
External
Purpose
Start a new command processor.
Syntax
COMMAND[device][/E:number][/K:filename]
[/P][/C string][/MSG]
Remarks
This command starts a new copy of the ROM-DOS command processor. The command processor
is the program that has all the internal DOS commands in it.
Starting a new command processor will also produce a new environment. The size of the
environment is 128 bytes by default, but it can be changed using the /E switch.
Command and its arguments can also be used in a SHELL= statement in your config.sys file. See
the full description of SHELL for more details.
Options
The device option specifies that COMMAND.COM should use a different device, such as AUX,
for input and output.
The /E:number switch sets the environment size. Number represents the size of the environment
in bytes. Number must be in the range from 160 to 32768. All other values will be ignored and the
default value of 256 will be used. ROM-DOS will round the value entered up to the nearest
multiple of 16.
The /K:filename option tells the command processor to run the specified filename and then display
the ROM-DOS command prompt. It is not recommended that this option be used in a
CONFIG.SYS SHELL= statement.
The /P switch causes COMMAND not to exit, or in other words, to remain permanent. The /P
switch should be used only when command is used in a CONFIG.SYS SHELL statement.
The /c string switch causes COMMAND to execute the command in string and then terminate.
The string command can be any internal or external command.
The /MSG option indicates that all error messages should be stored in memory. This option is
recommended only for diskette based systems. ROM-DOS keeps many of its error messages in the
resident part of COMMAND.COM rather than using valuable memory to store them. If an error
message is needed and you have loaded ROM-DOS from a diskette, the message will only be