DOS Command Index
DOS Command Index
CTTY
From the book (Internal)
DOS the Easy Way CHCP
by Everett Murdock Ph.D. (Internal) CTTY (device)
NOTE:
The complete index to DOS commands can be CHCP (codepage) Changes the standard I/O (Input/Output) device to
found at an auxiliary device.
www.easydos.com Displays the current code page or changes the code
page that DOS will use. DATE
For more information about the book DOS the Easy (Internal)
Way CHDIR
click here to go to (Internal) DATE mm-dd-yy
WWW.EASYDOS.COM
CHDIR (CD) [d:]path Displays and/or sets the system date.
Select the command name for complete information CHDIR (CD)[..]
about that command and examples of its use. DBLSPACE
Displays working (current) directory and/or changes (External)
APPEND to a different directory.
(External) DBLSPACE / automount=drives
CHKDSK DBLSPACE /chkdsk [/F] [d:]
APPEND ; (External) DBLSPACE /compress d: [/newdrive=host:]
APPEND [d:]path[;][d:]path[...] [/reserve=size] [/F]
APPEND [/X:on|off][/path:on|off] [/E] CHKDSK [d:][path][filename] [/F][/V] DBLSPACE /create d: [/newdrive=host:]
[/reserve=size] [/size=size]
Displays or sets the search path for data files. DOS Checks a disk and provides a file and memory DBLSPACE /defragment [d:] ]/F]
will search the specified path(s) if the file is not status report. DBLSPACE /delete d:
found in the current path. DBLSPACE /doubleguard=0|1
CHOICE DBLSPACE /format d:
ASSIGN (Internal) DBLSPACE [/info] [d:]
(External) DBLSPACE /list
CHOICE [/C[:]keys] [/N][/S][/T[:]c,nn] [text] DBLSPACE /mount[=nnn] host: [/newdrive=d:]
ASSIGN x=y [...] /sta DBLSPACE /ratio[=ratio] [d:] [/all]
Used to provide a prompt so that a user can make a DBLSPACE /size[=size] [/reserve=size] d:
Redirects disk drive requests to a different drive. choice while a batch program is running. DBLSPACE /uncompress d:
DBLSPACE /unmount [d:]
ATTRIB CLS (Clear Screen)
(External) (Internal) A program available with DOS 6.0 that allows you to
compress information on a disk.
ATTRIB [d:][path]filename [/S] CLS
ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H] DEBUG
[d:][path]filename [/S] Clears (erases) the screen. (External)
Sets or displays the read-only, archive, system, and COMMAND DEBUG [pathname] [parameters]
hidden attributes of a file or directory. (External)
An MS-DOS utility used to test and edit programs.
BACKUP COMMAND [d:][path] [device] [/P][/E:(size)]
(External) [/MSG][/Y [/C (command)|/K (command)] DEFRAG
(External)
BACKUP d:[path][filename] d:[/S][/M][/A][/F:(size)] Starts a new version of the DOS command
[/P][/D:date] [/T:time] [/L:[path]filename] processor (the program that loads the DOS Internal DEFRAG [d:] [/F][/S[:]order] [/B][/skiphigh [/LCD|
programs). /BW|/GO] [/H]
Makes a backup copy of one or more files. (In DOS DEFRAG [d:] [/V][/B][/skiphigh] [/LCD]|/BW|/GO] [/H]
Version 6, this program is stored on the DOS COMP
supplemental disk.) (External) Optimizes disk performance by reorganizing the files
on the disk.
BREAK COMP [d:][path][filename] [d:][path][filename]
(Internal) [/A][/C][/D][/L][/N:(number)]
DEL (ERASE)
BREAK =on|off Compares two groups of files to find information that (Internal)
does not match. (See FC command).
Used from the DOS prompt or in a batch file or in the DEL (ERASE) [d:][path]filename [/P]
CONFIG.SYS file to set (or display) whether or not COPY
DOS should check for a Ctrl + Break key (Internal) Deletes (erases) files from disk.
combination.
COPY [/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] DELOLDOS
BUFFERS [d:][path][filename] [/V] (External)
(Internal) or
COPY [/Y|-Y][/A][/B] DELOLDOS [/B]
BUFFERS=(number),(read-ahead number) [d:][path]filename+[d:][path]filename[...][d:][path][filen
ame] [/V] Deletes all files from previous versions of DOS after
Used in the CONFIG.SYS file to set the number of a 5.0 or 6.0 installation.
disk buffers (number) that will be available for use Copies and appends files.
during data input. Also used to set a value for the DELTREE
number of sectors to be read in advance (read- COUNTRY (External)
ahead) during data input operations. (Internal)
DELTREE [/Y] [d:]path [d:]path[...]
CALL COUNTRY=country code,[code page][,][d:][filename]
(Internal) Deletes (erases) a directory including all files and
Used in the CONFIG.SYS file to tell DOS to use subdirectories that are in it.
CALL [d:][path]batchfilename [options] country-specific text conventions during processing.
DISKCOMP Enables or disables EMM386 expanded-memory Used in the CONFIG.Sys file to specify the
(External) support on a computer with an 80386 or higher maximum number of files that can be open at the
processor. same time.
DISKCOMP [d:] [d:][/1][/8]
Loads the Doskey program into memory which can Displays a list of DOS commands with a brief
be used to recall DOS commands so that you can explanation of each. GOTO
edit them. (Internal)
Allows for conditional operations in batch Ensures that a program is loaded above the first 64K MODE n
processing. of conventional memory, and runs the program. MODE LPT#[:][n][,][m][,][P][retry]
MODE [n],m[,T]
LOADHIGH MODE (displaytype,linetotal)
INCLUDE (Internal) MODE
(Internal) COMn[:]baud[,][parity][,][databits][,][stopbits][,][retry]
LOADHIGH (LH) [d:][path]filename [parameters] MODE LPT#[:]=COMn [retry]
INCLUDE= blockname MODE CON[RATE=(number)][DELAY=(number)]
Loads memory resident application into reserved MODE (device) CODEPAGE PREPARE=(codepage)
Used in the CONFIG.SYS file to allow you to use the area of memory (between 640K-1M). [d:][path]filename
commands from one CONFIG.SYS block within MODE (device) CODEPAGE PREPARE=(codepage
another. list) [d:][path]filename
MEM MODE (device) CODEPAGE SELECT=(codepage)
(External) MODE (device) CODEPAGE [/STATUS]
INSTALL MODE (device) CODEPAGE REFRESH
(Internal) MEM [/program|/debug|/classify|/free|
/module(name)] [/page] Sets mode of operation for devices or
INSTALL=[d: ][\path]filename [parameters] communications.
Displays amount of installed and available memory,
Used in the CONFIG.SYS file to load memory- including extended, expanded, and upper memory. MORE
resident programs into conventional memory. (External)
MEMMAKER
(External) MORE < (filename or command)
INTERLINK (name)|MORE
(External) MEMMAKER [/B][/batch][/session][/swap:d]
[/T][/undo][/W:size1,size2] Sends output to console, one screen at a time.
INTERLINK [client[:]=[server][:]]
Starts the MemMaker program, a program that lets MOVE
Connects two computers via parallel or serial ports you optimize your computer's memory. (Internal)
so that the computers can share disks and printer
ports. MENUCOLOR MOVE [/Y|/-Y]
(Internal) [d:][path]filename[,[d:][path]filename[...]] destination
INTERSVR
(External) MENUCOLOR=textcolor,[background] Moves one or more files to the location you specify.
Can also be used to rename directories.
INTERSVR [d:][...][/X=d:][...] [/LPT:[n|address]] Used in the CONFIG.SYS file to set the colors that
[/COM:[n|address]][/baud:rate] [/B][/V] will be used by DOS to display text on the screen. MSAV
INTERSVR /RCOPY (External)
KEYB MENUITEM=blockname, [menutext] Used to backup or restore one or more files from
one disk to another. Changes the DOS command prompt. Version 6, this command is no longer available).
POWER STACKS=(number),(size)
(External)
SCANDISK Used in the CONFIG.SYS file to set the number of
POWER [adv:max|reg|min]|std|off] (External) stack frames and the size of each stack frame.
Used to turn power management on and off, report SCANDISK [d: [d: . . .]|/all][/checkonly|
the status of power management, and set levels of /autofix[/nosave]|
power conservation. /custom][/surface][/mono][/nosummay] SUBMENU
SCANDISK volume-name[/checkonly| (Internal)
/autofix[/nosave]|/custom][/mono][/nosummary]
SCANDISK /fragment [d:][path]filename SUBMENU=blockname, [menutext]
PRINT SCANDISK /undo [undo-d:][/mono]
(External) Used in the CONFIG.SYS file to create a multilevel
Starts the Microsoft ScanDisk program which is a menu from which you can select start-up options.
PRINT [/B:(buffersize)] [/D:(device)] [/M:(maxtick)] disk analysis and repair tool used to check a drive
[/Q:(value] [/S:(timeslice)][/U:(busytick)] [/C][/P][/T] for errors and correct any problems that it finds.
[d:][path][filename] [...] SUBST
SELECT (External)
Queues and prints data files. (External)
SUBST d: d:path
PROMPT SELECT [d:] [d:][path] [country code][keyboard code] SUBST d: /D
(Internal)
Substitutes a virtual drive letter for a path
PROMPT [prompt text] [options] Formats a disk and installs country-specific designation.
information and keyboard codes (starting with DOS
SWITCHES
(Internal) (Internal) A pathname (path) refers to the path you want DOS
to follow in order to act on the DOS command. As
SWITCHES= [/K][/F][/N][/W] VOL [d:] described in Chapter 3, it indicates the path from the
current directory or subdirectory to the files that are
Used in the CONFIG.SYS file to configure DOS in a Displays a disk's volume label. to be acted upon.
special way; for example, to tell DOS to emulate
different hardware configurations. 6. Filename
Restores files deleted with the DELETE command. Always leave a space after the command name.
3. Drive Designation
UNFORMAT
(External) The drive designation (abbreviated in this book as
"d:") is an option for many DOS commands.
UNFORMAT d: [/J][/L][/test][/partn][/P][/U] However, some commands are not related to disk
drives and therefore do not require a drive
Used to undo the effects of formatting a disk. designation. Whenever you enter a DOS command
that deals with disk drives and you are already
VER working in the drive in question, you do not have to
(Internal) enter the drive designator. For example, if you are
working in drive A (when the DOS prompt A> is
VER showing at the left side of the screen) and you want
to use the DIR command to display a directory listing
Displays the DOS version number. of that same drive, you do not have to enter the
drive designation. If you do not enter a drive
designation, DOS always assumes you are referring
VERIFY to the drive you are currently working in (sometimes
(Internal) called the "default" drive).
Turns on the verify mode; the program checks all When referring to a drive in a DOS command, you
copying operations to assure that files are copied must always follow the drive designator with a colon
correctly. (:) (this is how DOS recognizes it as a drive
designation).
5. Pathname
VOL