WELCOME to Free Self Help Quick Facts
No Nonsense FREE Computer Answers from people just like you, in plain English

Search Site

COMMAND



Syntax:

COMMAND [drive][path] [device] [/P][/E:(size)] [/MSG] [/Y [/C (command)|
/K (command)]

Reloads the DOS command processor (the program that loads the DOS internal programs) or starts a new command processor.


Options

device - Specifies a new input/output device at the time the new command processor is loaded.

/C (string) - Performs the command indicated by the string and then returns to the original command processor.

/E:(size) - Specifies the environment size. The size can be from 160 to 32,768 bytes. The default value is 256 bytes.

/K (command) - Runs the specified command, program, or batch program and then displays the DOS command prompt. This option must be the last one on the COMMAND command line (new with DOS Version 6).

/P - Keeps the secondary command processor in memory from that point in time forward. The EXIT command cannot be used to stop the command processor. The only way to reload the original command processor is by restarting the system. This option should be used only when COMMAND is used with the SHELL command in the CONFIG.SYS file.

/MSG - Stores all error messages in memory. Useful only if you are running DOS from floppy disks. If you use the /MSG option you must also use the /P option.

/Y - Tells COMMAND.COM to step through the batch file that has been specified with the /C or /K options . This option is useful for debugging batch files (new with DOS Version 6).



Example

COMMAND.COM in your CONFIG.SYS file in the following way:

SHELL=[[dos-drive:]dos-path]COMMAND.COM[[d:]path][device] [/E:(size)]

[/P [/MSG]]


Consider a donation of $2 if you find this website usefull