Unit 2 DOS and Windows Assignment
Unit 2 DOS and Windows Assignment
Assignment 1
In a library, librarian has to maintain various books. He has made various categories according to the
subject. The tree structure for the various directories are shown below
Subjects
Solution.txt
Law.txt Egypt.txt
Oldlaw.txt h1.txt
Assignment 2
Based on above figure, Imagine you are in the ‘Others’ directory. From this location give the DOS
commands for the following
a) Display all the files of civics directory
b) Delete the files from the mphysics physics
c) Display all the files, which have extension of ‘txt’ under the ‘math’ directory.
d) Copy the directory ‘optics’ under the ‘mphysics’ directory.
Assignment 3
D: (root)
MyFIle1.txt (F)
D – Directory
F – Ordinary File
Do the following using DOS:
a) Create the above directory structure with the help of MD and CD commands.
b) Change your directory to D: by CD\ command.
c) Create a file MyFile.txt here and type some contents. Use COPY CON command.
d) Display the contents of the file MyFile.txt with the help of TYPE command.
e) In the same way create other files after going into the respective directories with the help of
CD command.
f) Use DIR command to see the contents of D drive.
g) In the same way use DIR command to see the contents of Different directories.
h) Check the version of your OS.
i) Check and correct current date and time.
j) Clear the screen.
k) Remove the directory English with the help of RD command.
l) List the contents of the Directory Notes.
Assignment 4
Assume the following directory structure. You need to create a directory with your name in D or C
drive. –
D: \your name
D – Directory
F – Ordinary File
Assignment 5
Create a simple batch file in root directory and execute it to perform the following tasks –
a) Clear the screen
b) Change to subdirectory “your name”
c) Display date
d) Display the contents of the directory
Assignment 6
Create the following folders under the specified locations using windows.
1. D1 on desktop
2. R1 on the c: i.e. root
3. D2 on desktop
4. R2 on the c:
Do the following:
a) Create a folder D1-1 under the D1 folder
b) Create a folder D2-1 under the D2 folder
c) Copy this D2-1 folder and paste it under R1 folder.
d) Create the folder R1-1 under R1 folder
e) Copy R1-1 folder under the R2 folder
f) Rename folder R1-1 under R2 folder as ‘subfolder of R2’
g) From the c: copy all files to folder R2
h) Delete all the files from the folder R2
i) Recover all the deleted files
Assignment 7
Do the following
a) Interchange the functions of left and right mouse buttons.
b) Change the screen saver of your computer and change it to ‘marquee’, set your name as the
text and wait time should be 2 minutes.
c) Change the normal pointer of a mouse to another pointer
d) Set the date advanced by 2 months
e) Reset the system date & time
f) Set the system time late by 2 hrs: 40 minutes.