SlideShare a Scribd company logo
EXPERIMENT 02
Basics of Microsoft DOS
Objectives
To develop understanding of Operating system basics command line interface through MS
DOS.
Equipment /tool Used
• Computer with any version of windows installed
Background
MS.DOS is an abbreviation for MICROSOFT DISK OPERATING SYSTEM, it is basically
a non-graphical command line operating system derived from 86-DOS MS-DOS enables a
user to navigate and perform several operations on their systems from a command line
instead of a window.
MS DOS Basic Commands
Sr.
No.
Task Commands used
a The Command Prompt C:/>
This is called the command prompt, the flashing
underscore next to the command prompt is called cursor.
The cursor shows where the command you type will
appear.
b Nul If you make a typing mistake, press the BACKSPACE key
to erase the mistake, and then try again.
Press ENTER.
c Viewing the Contents of a
Directory
Dir
d Changing Directories cd windows
The command prompt changes. It should now look like the
following:
C:WINDOWS>
e To view a list of the files in the
WINDOWS directory
Dir
To view contents of a directory on screen at a time
dir /p
When you used the /p switch with the dir command, you
specified that MS-DOS should pause after it displays each
screen of directory list information. The p stands for
"page".
To view the contents of a directory in wide format
cdcddir /w
If the directory contains more files than will fit on one
screen, you can combine the /p and /w switches as follows:
dir /w /p.
f Changing Back to the Root
Directory
cd 
The command prompt should now look like the following:
C:>
g Creating a Directory In this section, you will create two directories. Creating a
directory is helpful if you want to organize related files into
groups to make them easy to find. Before you begin this
section, make sure the command prompt looks like the
following:
C:>
To create a directory, you will use the md command. The
md command stands for ‘make directory’
To create and change to a directory named FRUIT
1. Type the following at the command prompt:
2. md fruit
3. Dir
To change to the new FRUIT directory, type the following
at the command prompt:
cd fruit
The command prompt should now look like the following:
C:FRUIT>
You will now create a directory within the FRUIT
directory, named GRAPES.
To create and work with a directory named GRAPES
1. Type the following at the command prompt:
md grapes
To confirm that you successfully created the GRAPES
directory.
To change to the GRAPES directory, type the following at
the command prompt:
cd grapes
The command prompt should now look like the following:
C:FRUITGRAPES>
To switch back to the FRUIT
1. directory, type the following:
cd..
h Deleting a Directory
SSdirSS
In this section, you will delete the GRAPES directory.
Before you begin this section, make sure the command
prompt looks like the following:
C:FRUIT>
To delete a directory, use the rd command. The rd
command stands for ‘remove directory’
To delete the GRAPES directory
1. Type the following at the command prompt:
rd grapes
i Changing Directory C:FRUIT>
Type the following at the command prompt:
d:
j Copying Files
cop
Before you begin this section, make sure the command
prompt looks like the following: C:FRUIT>
To copy the NOTEPAD.EXE files from the WINDOWS
directory to the FRUIT directory
1. Return to the root directory by typing the
following at the command prompt:
cd
The command prompt should now look like the
following:
C:>
2. Change to the DOS directory by typing the
following at the command prompt:
cd windows
The command prompt should now look like the
following:
C:WINDOWS>
3. To copy the NOTEPAD.EXE file from the
WINDOWS directory to the FRUIT directory,
type the following at the command prompt:
copy c:windowsnotepad.exe c:fruit
The following message appears:
1 file(s) copied
4. To confirm that yoctu copied the files successfully, view
the contents of the FRUIT directory by typing the
following at the command prompt:
dir fruit
k Rename a file To rename a file, you will use the ren command. The ren
command stands for "rename." When you use the ren
command, you must include two parameters.
ren old name new name
Before you begin this section, make sure your command
prompt looks like the following:
C:FRUIT>
1. To rename the NOTEPAD.EXE file to
PADNOTE.TXT, type the following at the
command prompt:
2.
ren notepad.exe padnote.txt
l Deleting Files Before you begin, make sure your command prompt looks
like the following:
C:FRUIT>
1. Delete the PADNOTE.TXT file by typing the
following at the command prompt:
del PADNOTE.TXT
To delete the FRUIT directory
Return to the root directory by typing the following at the
command prompt:
cd 
You can see the FRUIT directory in the directory list by
typing the following at the command prompt:
dir or dir /p
Remove the FRUIT directory by typing the following at
the command prompt:
rd fruit.
Questions:
How are the following operations done in MS-DOS? See the syntax and know its function.
1. Net
2. Ping
3. Set
4. Assign
5. Attrib
6. Show the version of windows.
7. Show help
8. Show time
9. Show volume
10. What does Exit command do?
11. Tree
12. Pause
13. cls
a. The Command Prompt
b. Nul
Null
c. Viewing the Contents of a Directory
d. Changing Directories
To view a list of the files in the document directory
e. Changing Back to the Root Directory
f. Creating a Directory
g. Deleting a Directory
h. Changing Directory
i. Rename a file
Conclusion:
From this I have learn the root of commands used in PC and performing these
commands on command promt such as copy,delete,etc
i Copying Files

More Related Content

PDF
L1 msdos primer
PPSX
LEARNING MS DOS BASIC
PDF
CMD Command prompts
PPTX
ppt on cmd cammand
DOCX
Windows 7 command prompt commands
PPTX
Command prompt presentation
PDF
Msdos crash course
PDF
Command line for the beginner - Using the command line in developing for the...
L1 msdos primer
LEARNING MS DOS BASIC
CMD Command prompts
ppt on cmd cammand
Windows 7 command prompt commands
Command prompt presentation
Msdos crash course
Command line for the beginner - Using the command line in developing for the...

What's hot (14)

PPSX
Ms dos tutorial
DOCX
Comands of dos
PDF
11 unix osx_commands
DOC
CMD Command
PDF
What is cmd windows command prompt
DOCX
A z index of the windows cmd command line
PDF
Unix command quickref
PDF
Putty
DOC
Linux Shortcuts and Commands:
PDF
Win scp
PPTX
Command-Line 101
DOCX
Msdos
PPTX
How to Flush DNS
PPT
Sahana sharing your work with others
Ms dos tutorial
Comands of dos
11 unix osx_commands
CMD Command
What is cmd windows command prompt
A z index of the windows cmd command line
Unix command quickref
Putty
Linux Shortcuts and Commands:
Win scp
Command-Line 101
Msdos
How to Flush DNS
Sahana sharing your work with others
Ad

Similar to Itc lab 02 (20)

PPT
DOC
PC Software - Computer Application - Office Automation Tools
PPTX
Command line in Windows.pptx
PPT
Introduction to ms dos
PPTX
PPT4-Windows CLI.pptx
PPTX
DOS commands
DOCX
Internal commands of dos
PPTX
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
PPT
Linux komputer coding line command infor
PPTX
Ms DOS
PPT
Dos commad. by ammar nawab ppt
PDF
Basic dos commands
PDF
Basic dos commands
PDF
Dos commands
PPT
Windows command line function try at home
PPTX
Programming
PDF
33269198 all-commands-in-ms-dos
PDF
33269198 all-commands-in-ms-dos(1)
PDF
Command
PC Software - Computer Application - Office Automation Tools
Command line in Windows.pptx
Introduction to ms dos
PPT4-Windows CLI.pptx
DOS commands
Internal commands of dos
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
Linux komputer coding line command infor
Ms DOS
Dos commad. by ammar nawab ppt
Basic dos commands
Basic dos commands
Dos commands
Windows command line function try at home
Programming
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos(1)
Command
Ad

Recently uploaded (20)

PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Cell Types and Its function , kingdom of life
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Computing-Curriculum for Schools in Ghana
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Lesson notes of climatology university.
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Trump Administration's workforce development strategy
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Orientation - ARALprogram of Deped to the Parents.pptx
Final Presentation General Medicine 03-08-2024.pptx
History, Philosophy and sociology of education (1).pptx
Cell Types and Its function , kingdom of life
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Computing-Curriculum for Schools in Ghana
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Lesson notes of climatology university.
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Yogi Goddess Pres Conference Studio Updates
A systematic review of self-coping strategies used by university students to ...
Paper A Mock Exam 9_ Attempt review.pdf.
What if we spent less time fighting change, and more time building what’s rig...
Complications of Minimal Access Surgery at WLH
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Trump Administration's workforce development strategy
Practical Manual AGRO-233 Principles and Practices of Natural Farming

Itc lab 02

  • 1. EXPERIMENT 02 Basics of Microsoft DOS Objectives To develop understanding of Operating system basics command line interface through MS DOS. Equipment /tool Used • Computer with any version of windows installed Background MS.DOS is an abbreviation for MICROSOFT DISK OPERATING SYSTEM, it is basically a non-graphical command line operating system derived from 86-DOS MS-DOS enables a user to navigate and perform several operations on their systems from a command line instead of a window. MS DOS Basic Commands Sr. No. Task Commands used a The Command Prompt C:/> This is called the command prompt, the flashing underscore next to the command prompt is called cursor. The cursor shows where the command you type will appear. b Nul If you make a typing mistake, press the BACKSPACE key to erase the mistake, and then try again. Press ENTER. c Viewing the Contents of a Directory Dir d Changing Directories cd windows The command prompt changes. It should now look like the following: C:WINDOWS> e To view a list of the files in the WINDOWS directory Dir To view contents of a directory on screen at a time dir /p
  • 2. When you used the /p switch with the dir command, you specified that MS-DOS should pause after it displays each screen of directory list information. The p stands for "page". To view the contents of a directory in wide format cdcddir /w If the directory contains more files than will fit on one screen, you can combine the /p and /w switches as follows: dir /w /p. f Changing Back to the Root Directory cd The command prompt should now look like the following: C:> g Creating a Directory In this section, you will create two directories. Creating a directory is helpful if you want to organize related files into groups to make them easy to find. Before you begin this section, make sure the command prompt looks like the following: C:> To create a directory, you will use the md command. The md command stands for ‘make directory’ To create and change to a directory named FRUIT 1. Type the following at the command prompt: 2. md fruit 3. Dir To change to the new FRUIT directory, type the following at the command prompt: cd fruit The command prompt should now look like the following: C:FRUIT> You will now create a directory within the FRUIT directory, named GRAPES. To create and work with a directory named GRAPES 1. Type the following at the command prompt:
  • 3. md grapes To confirm that you successfully created the GRAPES directory. To change to the GRAPES directory, type the following at the command prompt: cd grapes The command prompt should now look like the following: C:FRUITGRAPES> To switch back to the FRUIT 1. directory, type the following: cd.. h Deleting a Directory SSdirSS In this section, you will delete the GRAPES directory. Before you begin this section, make sure the command prompt looks like the following: C:FRUIT> To delete a directory, use the rd command. The rd command stands for ‘remove directory’ To delete the GRAPES directory 1. Type the following at the command prompt: rd grapes i Changing Directory C:FRUIT> Type the following at the command prompt: d: j Copying Files cop Before you begin this section, make sure the command prompt looks like the following: C:FRUIT> To copy the NOTEPAD.EXE files from the WINDOWS directory to the FRUIT directory 1. Return to the root directory by typing the following at the command prompt: cd The command prompt should now look like the following: C:> 2. Change to the DOS directory by typing the following at the command prompt: cd windows The command prompt should now look like the following: C:WINDOWS>
  • 4. 3. To copy the NOTEPAD.EXE file from the WINDOWS directory to the FRUIT directory, type the following at the command prompt: copy c:windowsnotepad.exe c:fruit The following message appears: 1 file(s) copied 4. To confirm that yoctu copied the files successfully, view the contents of the FRUIT directory by typing the following at the command prompt: dir fruit k Rename a file To rename a file, you will use the ren command. The ren command stands for "rename." When you use the ren command, you must include two parameters. ren old name new name Before you begin this section, make sure your command prompt looks like the following: C:FRUIT> 1. To rename the NOTEPAD.EXE file to PADNOTE.TXT, type the following at the command prompt: 2. ren notepad.exe padnote.txt l Deleting Files Before you begin, make sure your command prompt looks like the following: C:FRUIT> 1. Delete the PADNOTE.TXT file by typing the following at the command prompt: del PADNOTE.TXT To delete the FRUIT directory Return to the root directory by typing the following at the command prompt: cd You can see the FRUIT directory in the directory list by typing the following at the command prompt: dir or dir /p Remove the FRUIT directory by typing the following at the command prompt: rd fruit.
  • 5. Questions: How are the following operations done in MS-DOS? See the syntax and know its function. 1. Net 2. Ping 3. Set 4. Assign 5. Attrib 6. Show the version of windows. 7. Show help 8. Show time 9. Show volume 10. What does Exit command do? 11. Tree 12. Pause 13. cls a. The Command Prompt b. Nul Null c. Viewing the Contents of a Directory
  • 6. d. Changing Directories To view a list of the files in the document directory
  • 7. e. Changing Back to the Root Directory f. Creating a Directory g. Deleting a Directory h. Changing Directory i. Rename a file
  • 8. Conclusion: From this I have learn the root of commands used in PC and performing these commands on command promt such as copy,delete,etc i Copying Files