You are on page 1of 22

COMPUTER

FUNDAMENTALS AND
PROGRAMMING
James Patrick L. Galvan
DOS Command
Understand the difference between
1 different internal and external DOS
commands.
TODAY'S
OBJECTIVE
Understand the way on how to use
2 Internal commands and its effects.
MS DOS

• MS-DOS (MicroSoft Disk Operating System) is a single-user, single tasking


computer operating system that uses a command line interface

• In MS-DOS there are two types of Basic Dos Commands, they are
Wen I go on
internal dos
commands and external dos commands which are used an online separately to
shopping
perform specific task or operation. Internal dos commands
spree - are those
Jannah
commands which are included in command processor.
COMMAND

• It is a string of characters which tells the computer what to do.

• When one types commands to a computer, one is conversing with the


operating system's command interpreter.

• For example, to copy a file called file.txt from the 3-1/2" floppy drive to the
Wen I go on
an online
shopping
hard drive, one could type spree -

• Jannah

• C:\> copy a:\file.txt c:\


DOS ENVIRONMENT

If the OS is DOS then the system will directly show prompt (C:\>)

If the OS is windows one must either terminate the Windows environment, or


open a DOS shell within the Windows environment. Wen I go on
an online
shopping
1st Method: Terminating Windows Environment spree -
Jannah

Select “Restart in MS-DOS Mode” from Shut Down in Start Menu.
DOS ENVIRONMENT

2nd Method: Opening DOS Shell in Windows


Select Start>Programs>Accessories>Command Prompt (XP)
Start>Programs>Accessories>MS-DOS Prompt (98)
Win+X>Windows Powershell Wen I go on
Win+X>Windows Powershell (Admin) an online
shopping
Search>cmd spree -
Jannah
Internal DOS Command
• Internal DOS commands are built in command and while the
computer has been booted this file or commands are loaded in the
computer memory and you can use this basic dos commands while
computer is ON.

• Examples: ver, time, del, md, cd, copy con, cls, date, vol, ren, copy
etc.
External DOS Command
• External DOS Commands are those basic dos commands which require
external supporting files which may be present on the bootable disk or
harddisk, without supporting files you cannot run or execute this commands.

• The external Dos Commands are not built in command file. They are present
separately on harddisk, they are slow as compared to internal dos
commands and require a lot of computer memory to execute or run.

• Examples : tree, xcopy, diskcopy, more, fdisk, format etc.


Basic Internal

Dos Commands and their Uses


• cls
• date • dir
• time • md
• copy con • cd
• type • rd
• rename • volume
• copy • ver
• delete • echo
VER COMMAND
• In computing, ver (short for *(Syntax)
version) is a command in various .
command-line interpreters C:\>ver (Press Enter)
(shells).It prints the name and
version of the operating system,
the command shell, or in some
implementations the version of
other commands.
CLS COMMAND
• This is an Internal dos command *(Syntax)
which is used to clear the output .
on the screen obtained when C:\>cls (Press Enter)
executed any basis dos
commands

• These commands clears all the


text from the screen and shows
user a command prompt
DATE COMMAND
• Date command is an internal *(Syntax)
basic dos command which is used .
to display or change current date C:\>date (Press Enter)
of system in format of mm/dd/yy
TIME COMMAND
• Time command is used to display *(Syntax)
or change the current time of .
Computer system. The format C:\>time (Press Enter)
which is used by time command
is HH:MM:SS
COPY CON COMMAND
• This is very internal important
internal dos command which is *(Syntax)
used to create text files. The
filename used while creating a file C:\>copy con abc.com (Press Enter)
using this basic dos command Everybody wants to go to heaven
consist of a primary name and an but nobody wants to die
extension which is separated by a
dot or period. To save the file use CTRL+Z or F6 or
to cancel use CTRL+C from
keyboard.
Basic External DOS Commands
and Uses

• External Dos Commands are those commands which are not embedded in
file, these command requires external supporting files for execution

• For example to run fdisk command you will need a fdisk.exe or fdisk.com
Wen I go on
file
inside your computer system or bootable drives. an online
shopping
spree -
Jannah
FORMAT COMMAND
• Format command is an external *(Syntax)
command and to run format
command you need a supporting C:\>format (drive name)
file. (Press Enter)

• Format command deletes or C:\>format A: (Press Enter)


erase all the data present in the
drives, which can be any flash Switches used in format command
drives hard drives or floppy disk.
DISKCOPY COMMAND
• diskcopy is a basic dos commands *(Syntax)
which comes in a category of
external dos command which is C:\>Diskcopy A: B:
used to copy entire content of (Press Enter)
one drive to another

• Diskcopy command works only


with floppy disk.
XCOPY COMMAND
• Xcopy dos command is used to *(Syntax)
copy entire files, directories and
subdirectories from one location C:\>xcopy (source)
to another. Xcopy command is (destination)
executed when xcopy.exe file is (Press Enter)
present in hard disk or bootable
drive. C:\>xcopy/s/e c:\movies
d:\new (Press Enter)
SYS COMMAND
• Sys command is another external *(Syntax)
dos command which is used to
transfer system files into C:\>sys a: (Press Enter)
destination drive and make the
drive bootable. A:\>sys c: (Press Enter)

• Usually sys commands copy three


files namely command.com /
io.sys and msdos.sys
Example
Activity 1. Ver - In computing, ver (short for version) is
a command in various command-line
• 10 Internal Dos Command interpreters (shells).It prints the name and
• 10 External Dos Command version of the operating system, the command
shell, or in some implementations the version
of other commands.

Note:
Do not use the lecture sample
Dos Command
THANK
YOU! Have a
great day
ahead.

You might also like