ITAB Lab - MS DOS
ITAB Lab - MS DOS
Applications Lab
(BBA-111)
By: SHIVANI KHURANA
Assistant Professor
RDIAS 1
2
Img Src: https://fossbytes.com/microsoft-re-open-source-ms-dos-1-25-and-2-0-codes-on-github/
4
• We can use command prompt to execute MS-DOS commands.
• If the file name contains more than one word then enclose in
quotes. E.g. “raj jain”.
11
12
Syntax
• CLS and press Enter
Input
• CLS and press Enter
Output
Command will clear all the complete contents of the screen
and leave only a prompt.
14
Syntax
• VOL and press Enter
Input
• VOL and press Enter
Output
• Command will display the volume of information about
the designated drive.
16
17
Syntax
• VER and press Enter
Input
• VER and press Enter
Output
• Command Will display the edition or version of DOS
we are working on
18
19
Syntax
• Date and press Enter
Input
• Date and press Enter
Output
• Command will display the current date
20
21
Syntax
• Time and press Enter
Input
• Time and press Enter
Output
• Command will display the current time
22
23
Syntax
• Dir (Press Enter)
Input
• Dir (Press Enter)
Output
• You various folder under the directory or drive.
24
25
26
27
28
29
30
31
32
33
34
35
Syntax
• CD .. (Press Enter)
Input
• CD ..(Press Enter)
Output
• You will out from the directory. It could be new or old
directory anything
36
37
Syntax
• CD\ and (Press Enter)
Input
• CD \ and (Press Enter)
Output
• You will exit from all directories and reaches to current
drive.
38
39
41
42
43
44
45
46
47
48
49
51
Syntax
• COPY CON <Filename> (press enter) ****
Input
• COPY CON <Filename> (press enter)
Output
• The command will help to create a new text file
53
54
55
Syntax
• TYPE <Filename> (Press Enter)
Input
• TYPE <Filename> (Press Enter)
Output
• The command will display the content or text of any file to
the display device.
56
57
58
59
2. MEM
This command displays free and used amount of memory in the
computer.
Syntax:- C:\> MEM
the computer will display the amount of memory.
60
4. XCOPY
When we need to copy a directory instant of a file from one location
to another the we uses xcopy command. This command is much faster
than copy command.
Syntax:- C:\> XCOPY < Source dirname > <Target dirname>
C:\> XCOPY TC TURBOC 61
C:\>
6. FC
(File Compare) This command is capable for comparing two set of
files and display difference between two files.
Syntax:- C:\> FC <First set of file> <Second set of file>
C:\> FC ROSE.TXT GULAB.TXT
62
8. SORT
This command is useful when we want to sort a file. When we run this
command the result can be get to display device or file.
Syntax:- C:\> SORT /R < Input file name> <output file name>
Suppose we have a file Player.txt which having the list of a cricket
player team and we want to sort the list of players, then we uses this
command
C:\> SORT Player.txt
If we not specify the output file name then result will show to the
screen.
/R- switch is used for sorting the file in descending order like from Z
to A or from 9 to 0.
63
---------- gulab.txt
A clock in a office can never get stolen
10. DISKCOPY
DISKCOPY copies the contents of a floppy disk to another.
Syntax:- C:\> DISKCOPY <Drive1> <Drive2>
C:\> DISKCOPY A: B:
This command will be copy all contents of A drive to B drive.
64
12. LABEL
If you are not happy with the volume label of hard disk, you can
change it.
Syntax:- C:\> LABEL
C:\>LABEL
Volume in drive C is JAI
Volume Serial Number is 3E42-1907 65
Volume label (11 characters, ENTER for none)? INFOWAY
C:\>t
C:\>time
Current time is 3:39:05.97p
Enter new time:
67
68
69