Professional Documents
Culture Documents
DOS Command Index
DOS Command Index
(Internal)
From the book
DOS the Easy Way CHCP CTTY (device)
by Everett Murdock Ph.D. (Internal)
NOTE: Changes the standard I/O (Input/Output) device to
The complete index to DOS commands can be CHCP (codepage) an auxiliary device.
found at
www.easydos.com Displays the current code page or changes the code DATE
page that DOS will use. (Internal)
For more information about the book DOS the Easy
Way CHDIR DATE mm-dd-yy
click here to go to (Internal)
WWW.EASYDOS.COM Displays and/or sets the system date.
CHDIR (CD) [d:]path
Select the command name for complete information CHDIR (CD)[..] DBLSPACE
about that command and examples of its use. (External)
Displays working (current) directory and/or changes
APPEND to a different directory. DBLSPACE / automount=drives
(External) DBLSPACE /chkdsk [/F] [d:]
CHKDSK DBLSPACE /compress d: [/newdrive=host:]
APPEND ; (External) [/reserve=size] [/F]
APPEND [d:]path[;][d:]path[...] DBLSPACE /create d: [/newdrive=host:]
APPEND [/X:on|off][/path:on|off] [/E] CHKDSK [d:][path][filename] [/F][/V] [/reserve=size] [/size=size]
DBLSPACE /defragment [d:] ]/F]
Displays or sets the search path for data files. DOS Checks a disk and provides a file and memory DBLSPACE /delete d:
will search the specified path(s) if the file is not status report. DBLSPACE /doubleguard=0|1
found in the current path. DBLSPACE /format d:
CHOICE DBLSPACE [/info] [d:]
ASSIGN (Internal) DBLSPACE /list
(External) DBLSPACE /mount[=nnn] host: [/newdrive=d:]
CHOICE [/C[:]keys] [/N][/S][/T[:]c,nn] [text] DBLSPACE /ratio[=ratio] [d:] [/all]
ASSIGN x=y [...] /sta DBLSPACE /size[=size] [/reserve=size] d:
Used to provide a prompt so that a user can make a DBLSPACE /uncompress d:
Redirects disk drive requests to a different drive. choice while a batch program is running. DBLSPACE /unmount [d:]
ATTRIB CLS (Clear Screen) A program available with DOS 6.0 that allows you to
(External) (Internal) compress information on a disk.
BACKUP d:[path][filename] d:[/S][/M][/A][/F:(size)] Starts a new version of the DOS command DEFRAG [d:] [/F][/S[:]order] [/B][/skiphigh
[/P][/D:date] [/T:time] [/L:[path]filename] processor (the program that loads the DOS Internal [/LCD|/BW|/GO] [/H]
programs). DEFRAG [d:] [/V][/B][/skiphigh] [/LCD]|/BW|/GO] [/H]
Makes a backup copy of one or more files. (In DOS
Version 6, this program is stored on the DOS COMP Optimizes disk performance by reorganizing the files
supplemental disk.) (External) on the disk.
DEVICEHIGH=(driver name) Displays messages or turns on or off the display of Used in the CONFIG.SYS file to specify the number
commands in a batch file. of file-control blocks for file sharing.
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 EDIT FDISK
used to install the device driver into the upper (External) (External)
memory area.
EDIT [d:][path]filename [/B][/G][/H][/NOHI] FDISK [/status]
DIR Starts the MS-DOS editor, a text editor used to Prepares a fixed disk to accept DOS files for
(Internal) create and edit ASCII text files. storage.
Enables or disables EMM386 expanded-memory Used in the CONFIG.Sys file to specify the
DISKCOMP support on a computer with an 80386 or higher maximum number of files that can be open at the
(External) processor. same time.
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)
Connects two computers via parallel or serial ports Starts the MemMaker program, a program that lets MOVE
so that the computers can share disks and printer you optimize your computer's memory. (Internal)
ports.
MENUCOLOR MOVE [/Y|/-Y] [d:][path]filename[,[d:]
INTERSVR (Internal) [path]filename[...]] destination
(External)
MENUCOLOR=textcolor,[background] Moves one or more files to the location you specify.
INTERSVR [d:][...][/X=d:][...] [/LPT:[n|address]] Can also be used to rename directories.
[/COM:[n|address]][/baud:rate] [/B][/V] Used in the CONFIG.SYS file to set the colors that
INTERSVR /RCOPY will be used by DOS to display text on the screen. MSAV
(External)
Starts the Interlink server.
MENUDEFAULT MSAV [d:] [/S|/C][/R][/A][/L][/N][/P][/F][/video]
(Internal) [/mouse]
JOIN MSAV /video
(External) MENUDEFAULT=blockname, [timeout]
Scans your computer for known viruses.
JOIN d: [d:path] Used in the CONFIG.SYS file to set the startup
JOIN d: [/D] configuration that will be used by DOS if no key is
pressed within the specified timeout period.
Allows access to the directory structure and files of a MSBACKUP
drive through a directory on a different drive. (External)
MENUITEM
(Internal) MSBACKUP [setupfile] [/BW|/LCD|/MDA]
KEYB
(External) 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]
the status of power management, and set levels of [/checkonly|/autofix[/nosave]|/custom][/surface]
power conservation. [/mono][/nosummay] SUBMENU
SCANDISK volume- (Internal)
name[/checkonly|/autofix[/nosave]|/custom][/mono]
[/nosummary] SUBMENU=blockname, [menutext]
PRINT SCANDISK /fragment [d:][path]filename
(External) SCANDISK /undo [undo-d:][/mono] Used in the CONFIG.SYS file to create a multilevel
menu from which you can select start-up options.
PRINT [/B:(buffersize)] [/D:(device)] [/M:(maxtick)] Starts the Microsoft ScanDisk program which is a
[/Q:(value] [/S:(timeslice)][/U:(busytick)] [/C][/P][/T] disk analysis and repair tool used to check a drive
[d:][path][filename] [...] for errors and correct any problems that it finds. SUBST
(External)
Queues and prints data files. SELECT
(External) SUBST d: d:path
PROMPT SUBST d: /D
(Internal) SELECT [d:] [d:][path] [country code][keyboard
code] Substitutes a virtual drive letter for a path
PROMPT [prompt text] [options] designation.
Formats a disk and installs country-specific
information and keyboard codes (starting with DOS SWITCHES
(Internal) VOL 5. Pathname
(Internal)
SWITCHES= [/K][/F][/N][/W] A pathname (path) refers to the path you want DOS
VOL [d:] to follow in order to act on the DOS command. As
Used in the CONFIG.SYS file to configure DOS in a described in Chapter 3, it indicates the path from the
special way; for example, to tell DOS to emulate Displays a disk's volume label. current directory or subdirectory to the files that are
different hardware configurations. to be acted upon.
SYS 6. Filename
(External) VSAFE
(External) A filename is the name of a file stored on disk. As
SYS [source] d: described in Chapter 1, a filename can be of eight or
VSAFE [/option[+|-]...] [/NE][/NX][Ax|/Cx] [/N][/D][/U] fewer letters or other legal characters.
Transfers the operating system files to another disk.
VSAFE is a memory-resident program that 7. Filename Extension
continuously monitors your computer for viruses and
displays a warning when it finds one. A filename extension can follow the filename to
TIME further identify it. The extension follows a period and
(Internal) can be of three or fewer characters. A filename
extension is not required.
TIME hh:mm[:ss][.cc][A|P] XCOPY
(External) 8. Switches
Displays current time setting of system clock and
provides a way for you to reset the time. XCOPY [d:][path]filename [d:][path][filename] [/A][/D: Characters shown in a command syntax that are
(date)] [/E][/M][/P][/S][/V][/W][Y\-Y] represented by a letter or number and preceded by
Copies directories, subdirectories, and files. a forward slash (for example, "/P") are command
options (sometimes known as "switches"). Use of
TREE Syntax Notes these options activate special operations as part of a
(External) To be functional, each DOS command must be DOS command's functions.
entered in a particular way: this command entry
TREE [d:][path] [/A][/F] structure is known as the command's "syntax." The 9. Brackets
syntax "notation" is a way to reproduce the
Displays directory paths and (optionally) files in each command syntax in print. Items enclosed in square brackets are optional; in
subdirectory. other words, the command will work in its basic form
For example, you can determine the items that are without entering the information contained inside the
optional, by looking for information that is printed brackets.
inside square brackets. The notation [d:], for
TYPE example, indicates an optional drive designation. 10. Ellipses
(Internal) The command syntax, on the other hand, is how
YOU enter the command to make it work. Ellipses (...) indicate that an item in a command
TYPE [d:][path]filename Command Syntax Elements syntax can be repeated as many times as needed.
1. Command Name
Displays the contents of a file. 11. Vertical Bar
The DOS command name is the name you enter to
start the DOS program (a few of the DOS When items are separated by a vertical bar (|), it
UNDELETE commands can be entered using shortcut names). means that you enter one of the separated items.
(External) The DOS command name is always entered first. In For example: ON | OFF means that you can enter
this book, the command is usually printed in either ON or OFF, but not both.
UNDELETE [d:][path][filename] [/DT|/DS|/DOS] uppercase letters, but you can enter command
UNDELETE names as either lowercase or uppercase or a mix of
[/list|/all|/purge[d:]|/status|/load|/U|/S[d:]|/Td:[- both.
entries]]
2. Space
Restores files deleted with the DELETE command.
Always leave a space after the command name.