Professional Documents
Culture Documents
Lab 2:
MS-DOS
Name: _______ALI HASSAN__________________________
Enrollment #: _____________01-135211-010____________________
Lab Tasks:
How are the following operations done in MS DOS?
1) View the contents of a directory
1|Page
LAB JOURNAL 2
2|Page
LAB JOURNAL 2
3) Delete a directory
3|Page
LAB JOURNAL 2
4|Page
LAB JOURNAL 2
5|Page
LAB JOURNAL 2
6|Page
LAB JOURNAL 2
7|Page
LAB JOURNAL 2
8|Page
LAB JOURNAL 2
9|Page
LAB JOURNAL 2
b. Pause
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:
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