Beruflich Dokumente
Kultur Dokumente
Commands
What is a command
Basic Terms
File (File Types)
Executable File
Non Executable File
Directory
Root Directory
Parent Directory
What is a Command
A command is a set of
instructions used to perform a
specific work
Interpreted by the OS interpreter
to a machine language
E.g. <md Ram>,<cd Ram>,etc.
Types of Command
Internal Command
Those commands which are already
loaded in the Command.COM file while
switching to the MS DOS
E.g. CLS, VER, DEL, etc.
External Command
Those commands which are not loaded
when loading the Program but are
available in the Disk and can be
invoked whenever necessary
E.g. FORMAT, TREE, XCOPY, etc.
What is a File
Types of Files
(Data Files)
Exe Files:
Program files that run or execute
themselves
Have either COM or EXE or BAT as
extension
What is a Directory
Root Directory
Current directory
Parent directory
Root directory
To start MS DOS,
click on the Start
button and
choose Run
In the Run dialog
box, type CMD or
COMMAND which
is the EXE file for
MS DOS
Click on the OK
button
Syntax :
DIR [Directory_name]
E.g. C:\>DIR NCIT
1.
2.
3.
4.
5.
6.
7.
8.
9.
Creating a Directory in MS
DOS
Syntax:
C:\> MD NCIT
Changing a Directory in MS
DOS
Syntax:
C:\>CD NCIT
Creating Files in MS
DOS
filename
Reading Files in MS
DOS
Syntax :
TYPE
Filename
Renaming Files
Deleting Files in MS
DOS
Syntax :
DEL
Filename
Deleting directories in
MSDOS
Copying Files in MS
DOS
sourcefile destination
E.g. C:\>COPY [c:\]NCIT\file1.txt C:\NCITNGH
Copying Files in MS
DOS
Syntax :
C:\>MOVE source_file destination_directory
E.g.
C:\>MOVE c:\NCIT\file1 D:\NCIT1\file2
Syntax :
VOL Drivename
E.g.
C:\> VOL
Syntax :
C:\>VER
E.g. C:\>VER
Returns the version of OS as Microsoft Windows 2000
[version 5.00.21951]
Checking the
Date/Time
E.g. C:\>DATE
External Commands
Those commands which are not
loaded when loading the
Program but are available in the
Disk and can be invoked
whenever necessary
E.g. FORMAT, TREE, XCOPY, etc.
Syntax :
Label [drivename]
E.g.
C:\>Label
XCopy Command
Syntax :
C:\>XCOPY c:\dir_name d:\[dir_name]
Syntax :
C:\> DISKCOPY
first_diskdrive: second_diskdrive:
E.g.
C:\> DISKCOPY A: B:
Syntax :
A:\>FORMAT [Drive_name]
E.g.
C:\>FORMAT A:
Syntax :
C:\>TREE [disk_name]
E.g.
C:\>TREE A:
E.g.
C:\>EDIT file1
E.g.
DIR C:\NCIT |MORE
E.g.
PRINT File1.txt
Syntax :
C:\ PROMPT Promptname
E.g.
PROMPT NCIT