Home

MS-DOS  6.2

Internal Commands

Click on a command name for complete information about that command and examples of its use.

BREAK (Internal)
Used from the DOS prompt or in a batch file or in the CONFIG.SYS file to set (or display) whether or not DOS should check for a Ctrl + Break key combination.

BREAK =on|off

BUFFERS (Internal)
Used in the CONFIG.SYS file to set the number of disk buffers (number) that will be available for use during data input. Also used to set a value for the number of sectors to be read in advance (read-ahead) during data input operations.

BUFFERS=(number),(read-ahead number)

CALL (Internal)
Calls another batch file and then returns to current batch file to continue.

CALL [d:][path]batchfilename [options]

CHCP (Internal)
Displays the current code page or changes the code page that DOS will use.

CHCP (codepage)

CHDIR (Internal)
Displays working (current) directory and/or changes to a different directory.

CHDIR (CD) [d:]path
CHDIR (CD)[..]

CHOICE (Internal)
Used to provide a prompt so that a user can make a choice while a batch program is running.

CHOICE [/C[:]keys] [/N][/S][/T[:]c,nn] [text]

CLS (Clear Screen)  (Internal)
Clears (erases) the screen.

CLS

COPY (Internal)
Copies and appends files.

COPY [/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] [d:][path][filename] [/V]
or
COPY [/Y|-Y][/A][/B] [d:][path]filename+[d:][path]filename[...][d:][path][filename] [/V]

COUNTRY (Internal)
Used in the CONFIG.SYS file to tell DOS to use country-specific text conventions during processing.

COUNTRY=country code,[code page][,][d:][filename]

CTTY (Internal)
Changes the standard I/O (Input/Output) device to an auxiliary device.

CTTY (device)

DATE (Internal)
Displays and/or sets the system date.

DATE mm-dd-yy

DEL (ERASE)  (Internal)
Deletes (erases) files from disk.

DEL (ERASE) [d:][path]filename [/P]

DEVICE (Internal)
Used in the CONFIG.SYS file to tell DOS which device driver to load.

DEVICE=(driver name)

DEVICEHIGH (Internal)
Like DEVICE, DEVICEHIGH is used in the CONFIG.SYS file to tell DOS which device driver software to use for devices; however, this option is used to install the device driver into the upper memory area.

DEVICEHIGH=(driver name)

DIR (Internal)
Displays directory of files and directories stored on disk.

DIR [d:][path][filename] [/A:(attributes)] [/O:(order)] [/B][/C][/CH][/L][/S][/P][/W]

DOS (Internal)
Used in the CONFIG.SYS file to specify the memory location for DOS. It is used to load DOS into the upper memory area and to specify whether or not the upper memory blocks will be used.

DOS=[high|low],[umb|noumb]

DRIVPARM (Internal)
Used in the CONFIG.SYS file to set parameters for a disk drive.

DRIVPARM= /D:(number) [/C] [/F:(form factor)] [/H:(number)] [/I][ /N][/S:(number)] [/T:(tracks)]

ECHO (Internal)
Displays messages or turns on or off the display of commands in a batch file.

ECHO on|off
ECHO (message)

EXIT (Internal)
Exits a secondary command processor.

EXIT

FCBS (Internal)
Used in the CONFIG.SYS file to specify the number of file-control blocks for file sharing.

FCBS=(number)

FILES (Internal)
Used in the CONFIG.Sys file to specify the maximum number of files that can be open at the same time.

FILES=(number)

FOR (Internal)
Performs repeated execution of commands (for both batch processing and interactive processing).

FOR %%(variable) IN (set) DO (command)

or (for interactive processing)

FOR %(variable) IN (set) DO (command)

GOTO (Internal)
Causes unconditional branch to the specified label.

GOTO (label)

IF (Internal)
Allows for conditional operations in batch processing.

IF [NOT] EXIST filename (command) [parameters]
IF [NOT] (string1)==(string2) (command) [parameters]
IF [NOT] ERRORLEVEL (number) (command) [parameters]

INCLUDE (Internal)
Used in the CONFIG.SYS file to allow you to use the commands from one CONFIG.SYS block within another.

INCLUDE= blockname

INSTALL (Internal)
Used in the CONFIG.SYS file to load memory-resident programs into conventional memory.

INSTALL=[d: ][\path]filename [parameters]

LASTDRIVE (Internal)
Used in the CONFIG.SYS file to set the maximum number of drives that can be accessed.

LASTDRIVE=(drive letter)

LOADFIX (Internal)
Ensures that a program is loaded above the first 64K of conventional memory, and runs the program.

LOADFIX [d:][path]filename [parameters]

LOADHIGH (Internal)
Loads memory resident application into reserved area of memory (between 640K-1M).

LOADHIGH (LH) [d:][path]filename [parameters]

MENUCOLOR (Internal)
Used in the CONFIG.SYS file to set the colors that will be used by DOS to display text on the screen.

MENUCOLOR=textcolor,[background]

MENUDEFAULT (Internal)
Used in the CONFIG.SYS file to set the startup configuration that will be used by DOS if no key is pressed within the specified timeout period.

MENUDEFAULT=blockname, [timeout]

MENUITEM (Internal)
Used in the CONFIG.SYS file to create a start-up menu from which you can select a group of CONFIG.SYS commands to be processed upon reboot.

MENUITEM=blockname, [menutext]

MKDIR (MD) (Internal)
Creates a new subdirectory.

MKDIR (MD) [d:]path

MOVE (Internal)
Moves one or more files to the location you specify. Can also be used to rename directories.

MOVE [/Y|/-Y] [d:][path]filename[,[d:][path]filename[...]] destination

NUMLOCK (Internal)
Used in the CONFIG.SYS file to specify the state of the NumLock key.

NUMLOCK=on|off

PATH (Internal)
Sets or displays directories that will be searched for programs not in the current directory.

PATH;
PATH [d:]path[;][d:]path[...]

PAUSE (Internal)
Suspends execution of a batch file until a key is pressed.

PAUSE [comment]

PROMPT (Internal)
Changes the DOS command prompt.

PROMPT [prompt text] [options]

REM  (Internal)
Used in batch files and in the CONFIG.SYS file to insert remarks (that will not be acted on).

REM [comment]

RENAME (REN)  (Internal)
Changes the filename under which a file is stored.

RENAME (REN) [d:][path]filename [d:][path]filename

RMDIR (RD)  (Internal)
Removes a subdirectory.

RMDIR (RD) [d:]path

SET (Internal)

SET (string1)=(string2)

Inserts strings into the command environment. The set values can be used later by programs.

SHELL (Internal)
Used in the CONFIG.SYS file to specify the command interpreter that DOS should use.

SHELL=[d:][path]filename [parameters]

SHIFT (Internal)
Increases number of replaceable parameters to more than the standard ten for use in batch files.

SHIFT

STACKS (Internal)
Used in the CONFIG.SYS file to set the number of stack frames and the size of each stack frame.

STACKS=(number),(size)

SUBMENU (Internal)
Used in the CONFIG.SYS file to create a multilevel menu from which you can select start-up options.

SUBMENU=blockname, [menutext]

SWITCHES (Internal)
Used in the CONFIG.SYS file to configure DOS in a special way; for example, to tell DOS to emulate different hardware configurations.

SWITCHES= [/K][/F][/N][/W]

TIME (Internal)
Displays current time setting of system clock and provides a way for you to reset the time.

TIME hh:mm[:ss][.cc][A|P]

TYPE (Internal)
Displays the contents of a file.

TYPE [d:][path]filename

VER (Internal)
Displays the DOS version number.

VER

VERIFY (Internal)
Turns on the verify mode; the program checks all copying operations to assure that files are copied correctly.

VERIFY on|off

VOL (Internal)
Displays a disk's volume label.

VOL [d:]

Home | Top

http://www.microsolutions.com
Copyright 2003.