Professional Documents
Culture Documents
Commands are the way of communicating with computers. Anything we want the
computer system to do is told in the form of commands in the predefined syntax.
DOS has two types of commands: -
# Internal Commands
# External Commands
Internal commands: -
These are those commands for which the code for executing them is stored in
COMMAND.COM and they execute without the requirement of any other file. When an
internal command is issue by the user, the transient portion knows what to do & executes
that command.
External commands: -
These are the independent executable files that can be used as separate utilities also.
Information about these files is also stored in the transient portion. When an external
command is issued, the transient portion picks up the relevant file of that command &
executes it.
INTERNAL COMMANDS
1. Date – It displays the current system date & prompts you to change the date, if
necessary.
2. Time – It sets the computer’s internal clock if command is issued with parameters
otherwise displays the system time.
3. Clear Screen – It clears the screen. The cleared screen shows only the command
prompt & the blinking cursor.
Syntax: C:\>cls
1
4.Ver – Ver command displays the MS-DOS version no.
Syntax: C:\>ver
5. Vol: - It displays the current volume label and the serial number of the specified drive.
If drive specifier is omitted Vol takes the current drive by default.
6. Break – It enables the DOS to check for Ctrl + C & Ctrl – break as the signal to
terminate the current program less frequently. If you run Break without any parameters,
the current state of break checking is displayed.
8. CHDIR (or CD) – It changes the current directory or displays the name of the current
directory.
9. Dir – It displays the list of the files & sub-directories that are in the directory specified.
10. Copy – It copy one or more files to the location specified & can also be used to
combine.
2
Syntax: C:\>del <drive:> <path> <filename>
13. Prompt – It chanes the appearance of the command prompt or displays the current
prompt.
15. Rename (or REN) – It changes the name of the file or files specified & can also
rename all files matching the specified filename.
16.Type – It displays the contents of a text file or view the contents of any text file
without modifying it.
17. Path – It is used to earch for the executable files in the directories specified.
18. Verify – It verifies that the files are written correctly to the disk.
Syntax: C:\>verify
3
Externel Commands
1. Attrib – It lets you display or alter the attributes assigned to a file or directory.
2. Chkdsk – It checks a disk’s file allocation table entries for errors & find whether the
files are o.k. or not.
4. Format – It creates a new directory & file allocation table for the disk.
4
5. Scandisk – It checks a drive for errors and corrects any problems that it finds.
6. Tree – The structure of the specified drive from the specified directory down, listing
all the sub-directories it encounters is displayed graphically.
7. Deltree – It deletes a directory and all the files and sub-directories contained within it.
8. XCopy – It is used to copy all the files in a directory, including the files in the sub-
directories of that directory.
10. FDisk – It is the tool, DOS provides for setting up and managing hard disk partitions.
Syntax: C:\>fdisk
11. Label – It lets you create, modify or delete the label assigned to a disk.
12.Doskey – It edits command lines, recalls command lines and creates macros.
5
Syntax: C:\>doskey
13.More – It displays one screen of output at a time and in end of each screen displays
the message.
14. Backup – It lets the user to take the backup of hard disk files to floppies.
16. Mem – It displays amount of used and free memory in the system.
Syntax: C:\>mem
(External Commands continued…………)
17. FC – It compares two files or sets of files and displays the difference between them.