1 Install and setup operating system and related software in a computer following safety precautions.
1.21 Use basic DOS commands for directory listing.
1.21.1 DOS Command Prompt
Aim : To enter into DOS Command Prompt and customise the terminal window
Tools/Equipments/Instruments: Working computer system
Procedure:
Task 1: to enter into dos prompt
1. From taskbar click on search box
2. Inside search field type cm or command
3. Click on command prompt
Or
1. Win + R open Run window
2. Type cmd press enter
Task 2: customize terminal window
1. Open terminal tab in command prompt properties window
2. In the terminal color section select options to change
3. Change the cursor type
4. Open font tab to change the font size of text
Result: successfully entered into DOS prompt and customized the terminal window
1 Install and setup operating system and related software in a computer following safety precautions.
1.21 Use basic DOS commands for directory listing.
1.21.2 Use Basic Dos Commands
Aim : To Use Basic Dos Commands
Tools/Equipments/Instruments: Working computer system
Procedure:
A Change the working drive from C to D
1 Type D: at DOS prompt as shown below.
b View/change System date
D:\>DATE
Enter the DATE command to check the new date is set.
cView/change System time
D:\>TIME
Enter the TIME command to check the new date is set.
D Clears screen
D:\>CLS
E Change the prompt
Type the following PROMPT command to change the DOS prompt from D:\>to copa>.
D:\>PROPMPT copa$G
F Type the following PROMPT command to set the current date as DOS prompt. Record the output.
D:\>PROPMPT $D$G
G .create, change, or delete a volume label on a logical drive
LABEL command is used to Create, change, or delete a volume label on a logical drive
H .Type the following command
D:\>LABEL
Retype the LABEL command
i. Display the volume label and volume serial number on a logical drive
Type the following command D:\> VOL
j. Print the name and version of the operating system
D:\> VER
k. Display complete system information for Microsoft Windows computers.
d:\> SYSTEMINFO
Result: basic dos commands are practiced
1 Install and setup operating system and related software in a computer following safety precautions.
1.21 Use basic DOS commands for directory listing.
1.21.3 List Directory contents using DIR Commands
Aim : To List Directory contents using DIR Commands
Tools/Equipments/Instruments: Working computer system
Procedure:
1. Change over to E drive by typing E: at DOS prompt.
2. Type the following command.
E:\> DIR
3. It displays a list of files and directories of E drive
Exit DOS session
Type the following command
D:\> EXIT
4 Type the following command
E:\> DIR htmlnimi
Displays a list of files and directories of HTMLNIMI directory of E drive
5 Type the following command
E:\> DIR/AD
It displays only the directories of E drive as shown below.
6 Type the following command.
E:\> DIR H*.*
It lists all files and folders begin with letter H and have any extension
View directory structure using TREE command
7 type the following command E:\> TREE
It displays the directory structure (only directories) of aE drive as shown below.
8 Type the following command.
E:\> DIR ?????
It lists all files and folders which are 5 characters long without any extension
9 Type the following command
E:\> TREE/F htmlnimi
Result Directory contents are listed using DIR Commands
1 Install and setup operating system and related software in a computer following safety precautions.
1.22 Manage files and folders using DOS commands.
1.22.1 Manage Files and Directories using DOS Commands
Aim : To Manage Files and Directories using DOS Commands
Tools/Equipments/Instruments: Working computer system
Procedure:
TASK 1: Manage files using DOS commands
1COPYCON lesson1.txt
It creates the text file lesson1.txt as shown in
^Z (Ctrl Z) or F6 is used to save the text file.
2 TYPE lesson1.txt
It displays the content of the text file lesson1.txt
3 COPY lesson1.txt ex1.txt
It copies lesson1.txt to ex1.txt as shown in .
Use DIR command to check that the file ex1.txt is in the list.
4 REN ex1.txt notes.txt
It renames the file ex1.txt as notes.txt as shown in Fig.4
Use DIR command to check that the file ex1.txt is renamed as notes.txt
5 DEL notes.txt
It deletes the file notes.txt as shown in Fig.5
Use DIR command to check that the file notes.txt is available in the list.
1. SORT lesson1.txt
It sorts the content of the file lesson1.txt as
2. FIND "SYS" lesson1.txt
It searches for a text string "SYS" in the text file lesson1.txt anddisplays a line having the text
string "SYS"
3. FIND/n "SYS" lesson1.txt
It searches for a text string "SYS" in the text file lesson1.txt and displays a line having the text
string "SYS"with line number .
TASK 2: Manage directories (folders) using DOS commands
4. MD training
It creates the new directory "training"
5. CD training
It changes the current directory to training and it can be seen in the DOS prompt as shown in .
6. MD Theory
It creates a new subdirectory Theory in the main directory training
7. MD Practical
It creates a new subdirectory Practical in the main directory training
8. CD Practical
It changes the current working directory to Practical
9. CD..
It exits current working subdirectory Practical and goes to the main directory training
10. CD Theory
it changes the current working directory to Theory
11. CD\
It exits all directories Theory and training and goes to the root directory E:\
RD training
RD command removes the empty directory only. So first thing is to remove all files and
directories inside the directory training.
12. CD training
It changes the current working directory into training
13. RD Theory
It removes the empty subdirectory Theory
14. RD Practical
It removes the empty subdirectory Practical
15. CD..
It exits the current working directory training and goes to E:\>
TASK 3: Create the given Directory Stucture
E:\>MAINDIR1
<Subdir1>
<Subdir2>
File1
<Subdir3>
16. Use TREE command to view the directory structure of the directory MAINDIR1
• MD MAINDIR1 - Creates MAINDIR1
Enters into
• CD MAINDIR1 - directory
MAINDIR1
• MD Subdir1 - Creates Subdir1
• MD Subdir2 - Creates Subdir2
Enters into
" CD Subdir2 - Subdir2
COPY CON Creates the file
• File1 - File1
• ^Z - Saves the file File1
• MD Subdir3 - Creates Subdir3
Exits all
• CD\ - subdirectory
and goes to root
directory E:
Result: Managed Files and Directories using DOS Commands successfully