COMMAND.COM



COMMAND.COM is DOS' command interpreter. Without it, DOS couldn't execute the commands you type, nor the ones you put in batch files.

COMMAND.COM is loaded at boot time, through the SHELL statement in CONFIG.SYS. This primary command interpreter will always stay in memory, until the computer is shut down (though part of it may sometimes be "overwritten" to give programs some extra memory; this "transient" part of COMMAND.COM will then be reloaded after the program has been closed).

You may, however, "nest" as many secondary (and more) COMMAND.COMs as is practically possible within the 640KB memory constraints. These secondary command processors will usually be closed after executing one or more commands in their own copy of DOS' environment.Note: COMMAND.COM is the only native command interpreter in MS-DOS (including Windows 9x) and PC-DOS.
In Windows NT 4, 2000 and XP and in OS/2, CMD.EXE is the default command interpreter; a COMMAND.COM emulation is available for compatibility purposes, however.
General Syntax:
COMMAND [ drive:[path ]] [ device ] [ /D ] [ /E:nnn ] [ /F ] [ /MSG ] [ /Y ] [ /P | {{ /C ¦ /K } string } ]


Read the full source here.

COMMAND.COM