Академический Документы
Профессиональный Документы
Культура Документы
EXPERIMENT #1
LIST OF DOS COMMANDS
NAME: INSTRUCTOR:
SECTION: DATE: GRADE:
OVERVIEW
OS short for disk operating system, is an acronym used to describe the family of several
very similar command-line computer operating systems for x86-based computers, including MS-
DOS, PC DOS, DR-DOS, FreeDOS, ROM-DOS, and PTS-DOS; although none of these systems
were officially named "DOS".
In DOS, many standard system commands were provided for common tasks such as listing
files on a disk or moving files. Some commands were built into the command interpreter, others
existed as external commands on disk. Over the several generations of DOS, commands were
added for the additional functions of the operating system. In the current Microsoft Windows
operating system, a text-mode command prompt window, cmd.exe, can still be used.
COMMAND PROCESSING
1|Page
NCP 422 (Operating System Laboratory)
command programs had to be on an accessible disk, either on the current drive or on the
command path set in the command interpreter.
In the list below, commands that can accept more than one filename, or a filename including
wildcards (* and ?), are said to accept a filespec (file specification) parameter. Commands that can
accept only a single filename are said to accept a filename parameter. Additionally, command line
switches, or other parameter strings, can be supplied on the command line. Spaces and symbols
such as a "/" or a "-" may be used to allow the command processor to parse the command line into
filenames, file specifications, and other options.
The command interpreter preserves the case of whatever parameters are passed to
commands, but the command names themselves and filenames are case-insensitive. Many
commands are the same across many DOS systems, but some differ in command syntax or name.
DOS COMMANDS
A partial list of the most common commands for MS-DOS follows below:
APPEND DEFRAG GOTO
ARP DEL GPUPDATE
ASSIGN DELPART GRAFTABL
AT DELTREE HELP
ATMADM DIR HOSTNAME
ATTRIB DISKCOMP ICACLS
BACKUP DISKCOPY IF
BCDEDIT DOSKEY IPCONFIG
BOOTSECT DOSSHELL LABEL
BREAK DRIVERQUERY LH
CACLS DRIVPARM LOADFIX
CALL DUMPCHK LOADHIGH
CD ECHO LOCK
CHCP EDIT LOGOFF
CHDIR EDLIN MD
CHKDSK ENDLOCAL MEM
CHKNTFS ERASE MKDIR
CHOICE EXIT MKLINK
CIPHER EXPAND MODE
CLIP EXTRACT MORE
CLS FASTHELP MOVE
COLOR FC MOVE
COMP FCIV MSAV
COMPACT FDISK MSBACKUP
CONVERT FIND MSCDEX
COPY FOR MSCDEXNT
CTTY FORFILES MSD
DATE FORMAT MSG
DEBUG FTP MWBACKUP
2|Page
NCP 422 (Operating System Laboratory)
TYPES OF COMMAND
Internal Command
An internal command is an MS-DOS command that is stored in the system memory
and loaded from the command.com or cmd.exe. Figure 2 below shows how commands
contained within command.com are part of the command.com file. However, with the
external commands, each of the commands are their own separate file.
All of the internal commands are part of the shell which could be command.com or
cmd.exe (depending on your version of MS-DOS or Windows) and are not separate files
on the hard drive.
As long as you can open a command line you can run any of the internal commands
included with your version of MS-DOS or Microsoft Windows.
External Command
An external command is an MS-DOS command that is not included in
command.com. External commands are commonly external either because they require
large requirements or are not commonly used commands. The illustration shows each of
the external commands are separate files. However, the internal commands are all included
in the command.com file.
3|Page
NCP 422 (Operating System Laboratory)
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------
4|Page
NCP 422 (Operating System Laboratory)
EXTERNAL COMMAND:
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------
ACTIVITY
1. Discuss the differences or similarities between the following MSDOS commands:
a. COPY vs XCOPY vs ROBOCOPY
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
b. COPY vs MOVE
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
c. RD vs MD
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
d. COPY vs REN
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
5|Page
NCP 422 (Operating System Laboratory)
e. SET vs PATH
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
f. SYSTEMINFO vs DRIVERQUERY vs TASKLIST
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
g. RD vs DEL
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
3. What is Batch File? How helpful is batch file scripting?
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
6|Page