SlideShare a Scribd company logo
1 of 8
Download to read offline
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

What's hot

A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
proser tech
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
wensheng wei
 
Sahana sharing your work with others
Sahana   sharing your work with othersSahana   sharing your work with others
Sahana sharing your work with others
AidIQ
 

What's hot (14)

Ms dos tutorial
Ms dos tutorialMs dos tutorial
Ms dos tutorial
 
Comands of dos
Comands of dosComands of dos
Comands of dos
 
11 unix osx_commands
11 unix osx_commands11 unix osx_commands
11 unix osx_commands
 
CMD Command
CMD CommandCMD Command
CMD Command
 
What is cmd windows command prompt
What is cmd windows command promptWhat is cmd windows command prompt
What is cmd windows command prompt
 
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
 
Unix command quickref
Unix command quickrefUnix command quickref
Unix command quickref
 
Putty
PuttyPutty
Putty
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 
Win scp
Win scpWin scp
Win scp
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
 
Msdos
MsdosMsdos
Msdos
 
How to Flush DNS
How to Flush DNSHow to Flush DNS
How to Flush DNS
 
Sahana sharing your work with others
Sahana   sharing your work with othersSahana   sharing your work with others
Sahana sharing your work with others
 

Similar to Itc lab 02

Xternal commands.31
Xternal commands.31Xternal commands.31
Xternal commands.31
myrajendra
 
20 C programs
20 C programs20 C programs
20 C programs
navjoth
 

Similar to Itc lab 02 (20)

Dos 16
Dos 16Dos 16
Dos 16
 
DOS commands
DOS commandsDOS commands
DOS commands
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
Xternal commands.31
Xternal commands.31Xternal commands.31
Xternal commands.31
 
Programming
ProgrammingProgramming
Programming
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Command line in Windows.pptx
Command line in Windows.pptxCommand line in Windows.pptx
Command line in Windows.pptx
 
Lec05
Lec05Lec05
Lec05
 
Practical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptxPractical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptx
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
Dos
DosDos
Dos
 
MS-DOS
MS-DOSMS-DOS
MS-DOS
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 
20 C programs
20 C programs20 C programs
20 C programs
 
p_ms-dos-new.ppt
p_ms-dos-new.pptp_ms-dos-new.ppt
p_ms-dos-new.ppt
 
Dos_Commands.ppt
Dos_Commands.pptDos_Commands.ppt
Dos_Commands.ppt
 

Recently uploaded

Recently uploaded (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

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