You are on page 1of 14

LAB JOURNAL 2

Lab 2:
MS-DOS
Name: _______ALI HASSAN__________________________

Enrollment #: _____________01-135211-010____________________

Class/ Section: _________BS(IT) 1A________________________

INSTRUCTIONS FOR STUDENTS:

*SaveyourEACH document with your enrollmentno-name (01-123456-000-Ali)


*Copy pasting/Cheating with other students leads to zero marks. So no auguments.
*Submit your work on time on LMS.

Lab Tasks:
How are the following operations done in MS DOS?
1) View the contents of a directory

1|Page
LAB JOURNAL 2

2) Create a new directory

2|Page
LAB JOURNAL 2

3) Delete a directory

3|Page
LAB JOURNAL 2

4) Rename a file in the directory

4|Page
LAB JOURNAL 2

5) Change from to root directory to windows directory

6) View the contents of windows directory

5|Page
LAB JOURNAL 2

7) Change from windows directory to root directory

8) Copy the files from one directory to another

9) Change from one drive to another

10) Show the version of windows.

6|Page
LAB JOURNAL 2

11) Show help

7|Page
LAB JOURNAL 2

12) Show time


Time (ENTER)

13) Show volume

8|Page
LAB JOURNAL 2

First type diskpart


Type volume on diskpart

14) What does Exit command do?


This command close the command prompt
15) Use help command to explore the following.
a. Tree
Graphically displays the directory structure of a drive or path

9|Page
LAB JOURNAL 2

b. Pause

Suspend processing of a batch file and displays a message

c. Cls
Clears the screen

10 | P a g e
LAB JOURNAL 2

HOME TASK #2
QUESTION:

How are the following operations done in MS-DOS? Give the syntax and explain the command (all answers must
be typed along with the questions to be in BOLD)

1. Net

11 | P a g e
LAB JOURNAL 2

The net command manages any aspect of networks and settings including network shares
And network users
Syntax:
Net
[ ACCOUNTS | COMPUTER | CONFIG | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | PAUSE | SESSION |SHARE | START | STATISTICS | STOP |
TIME | USE | USER | VIEW ]

2. Ping
The ping command is used to check the ability of the source computer to reach a specified
destination computer . it’s usually used as a simple way to verify that a computer can
communicate over the network with another computer or network device

Syntax:
PING [-t] [-a] [-n count] [-1 size] [-f] [-I TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-
list]] [-w timeout] [-Rr [-s srcaddr] [ -c compartment] [-p] [-4] [-6] target-name

12 | P a g e
LAB JOURNAL 2

3. Set

Syntax:
Answer:
The SET command is used to set values that will be used by program. DOS holds the set strings in
the area of memory reserved for the environment (if the string already exists in the environment,
it is replaced).
4. Assign

13 | P a g e
LAB JOURNAL 2

Syntax:

Assign [{letter=<d | mount=<path>}] [noerr]


Answer:
ASSIGN command change drive assignments from the drive indicated by the first letter you enter
(x), to the drive indicated by the second letter

5. Attrib

______________________________________________________________________________________
Syntax :
ATTRIB [d:][path]filename [/S]
Attrib command can change a file read/write attribute or set the archive attribute.bu using this
command to specify a file, the file can accessed but not altered or delete

14 | P a g e

You might also like