3 Lab Assignment For Window

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 29

Sisodia Institute of Management & Technology, Patna

Lab Assignment for Window


Windows Basics
[SET 1]
Windows Basics topics are designed to introduce you to personal computing and the Windows operating
system.
Desktop fundamentals

Question: Examine Your

The desktop (overview)

The Start menu (overview)

The taskbar (overview)

Desktop gadgets (overview)

Working with windows

Using menus, buttons, bars, and boxes

Question: Do the necessary step for complete below mention task:

How to Change icons of any File, Folder ?

How to change desktop wallpaper, Themes, Resolution of screen?

How to change screen saver with password?

How to create user account, change user account picture, protect with password?

How to change date & Time in window?

How to install fonts?

How to change mouse pointer icon?

How to increase & decrease Recycle bin size?

Question: Programs, files, and folders

Create a folder, Rename it?

1 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Create another folder and mover first folder inside it?

Create desktop shortcuts?

How to hide and unhide folder?

How to zip or compress folder with & without password?

How to Extract zipped folder?

How to send any folder in Pendrive?

How to search any folder in window?

How to select multiple folders & file in any drive with and without mouse?

How to delete any folder & file without sending items in Recycle bin?

Create list of file with their extension?

Question: Working with window Accessory

How to use character Map

How to use disk cleanup utility?

How to use Disk defragmenter and schedule task for automatic defragmentation?

How to use on screen keyboard & Magnifier?

How to use calculator for standard & scientific calculation?

Question: Working with Paint

Draw any four fruits, one house, one cartoon character & one scenery in Paint.

Color it & save in a folder Image.

Sent any one as your desktop wall paper.

Internet, e-mail, and networking

Getting started with e-mail

o Create an email account

2 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
o Change themes.

o Create filter & label

o Compose & Send email

o Create contact list

o emails

o Add signature line & auto responder.

o Understanding security and safe computing

How to use search engine for searching any information, image?

How to download songs, image, software, fonts and tutorials?

How to fill on-line forms?

Working with MS-Office

MS-Word-2007
1. Create new document using blank and install templates. Create your resume.
Format of resume in attachment.

2. Draft a Letter to Admission section of university to for Name correction.

3. Your task will be to use Microsoft Word to produce three documents:

Documents Examples

Compose a note inviting friends to a


get-together at your house, including
A one page document which
a list of things to bring with them.
1 includes the use of a
bulleted list. Write a report about a book listing
five facts about the main character

Design a New Year Card.


2 A sign, or certificate in Design award certificate to
3 Window, Internet, DOS & Ms office Assignment.
Sisodia Institute of Management & Technology, Patna
present to a student for best
performance in Lab Activity.
landscape orientation with a
Make a sign outlining your
border around the document
rules for your bedroom at
home.

Design a newsletter which could be


used to communicate with the class
A newsletter with a headline
next door.
and 2 columns in portrait
3
orientation, including at Use a newsletter format to promote
least one image upcoming projects or events in your
classroom or school.

4. Discuss & Apply these commands:

a. Insert & work with Tables: Insert rows column, merge cell, split cell &
table, delete row & column etc.

b. Try Paste & Paste Special, Format painter and grow & shrink command.

c. Work with indents, Paragraph & Line spacing (Add/Remove).

d. Play with text & Paragraph using words Art, Drop Cap & Text box.

e. Work with links by creating hyperlink, book marks & cross reference.

f. Play with shapes like insert shapes, clip Art, smart Art & charts.

g. How to insert & remove Header footer, water marks, border around page.

h. Work with Page setups like page orientation, Page size, Margin & column.

i. Implement use of footnotes, end notes, spelling & Grammar check &
Thesaurus.

j. How to apply Track change with password protection & remove

k. How to compare to documents

l. How to protect document with password for read only.

4 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
m. How to insert any text file in ms-word without paste option (hits: use
object command).

n. How to create Index in last of document.

o. How to insert caption on available photos, table & equation in Ms-word.

p. How to insert blank page & page break.

5. Create a Project on detail of computer Fundamentals or Computer


Architecture including

a. Inserting images, drawings,

b. formatting on text,

c. Apply Heading style

d. Use number & bullet list where requires

e. Insert table and format that table

f. Insert new page.

g. Insert page number, header & footer

h. Insert end notes & footnotes

i. Mange margin with gutter margin

j. Choose page size and page orientation

k. Apply border & Water Mark and tables

l. Insert caption for all images.

m. After completing all lastly insert Table of content at first page of your
document.

6. Create Marks sheet format & certificate format.

7. Design one enquiry form, admission form and feedback form.

5 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
8. Compose invitation letter for gathering your entire friend in college annual day
by using Mail-merge command.

9. Enter any five mathematical formula & equation from logarithm, matrix etc.

Samples

Format for Resume.

RAVI JAIN
12/1 N S Road, P.O. Lal Bag, Delhi-110001
09876543210, ravijain@gmail.com, ravijain@yahoo.in

Professional Qualification:
6 Window, Internet, DOS & Ms office Assignment.
Sisodia Institute of Management & Technology, Patna

Passed Professional Programme from ICSI in June 2012.


Passed CS (Executive Programme) from ICSI in June 2010.
Passed CS (Foundation Programme) from ICSI in June 2009.

Educational Qualification:

Board/Universi Qualificatio Year of Subjects Percentag


ty n Qualificatio e (%)
n
C.B.S.E. 10th 2006 English, Math, 71.4
Science, Social
Science
C.B.S.E. 12th 2008 Physics, Chemistry, 64.2
Biology, Math

Employment Details:

Associated with the PCS Firm M/S VLA & Associates from 17 th December, 2012 till present as Assistant
Company Secretary.

Key Assignments Handling:

Allotment of shares and procedure thereof.


Drafting of Resolution & Documents w.r.t.:

Bonus Issue
Appointment & Cessation of Directors
Appointment of Auditors
Increase in Authorized Capital
Allotment of Shares
Change of Name & Objects

Maintaining Statutory Registers like u/s 301 etc.

Internship:

Completed 15 months Practical Training as Paid Assistant (CS Article) with M/s D S Associates
(Practicing Company Secretary) having office at A-233, Ground Floor, Ashok Vihar, Phase IV, Delhi-
110052 from 23rd August 2011 to 12th December 2012.

Computer Skills:

7 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
One Year Multimedia Diploma from NICE Technologies.
Accustomed to working in a computerized LAN enabled environment.
Conversant in MS Office, windows & familiar with internet operation.

Awards & Achievements:

NCC Grade A Certificate during 11th to 12th class.

Biographical Data:

Date of Birth : 10 May, 1992


Language Known : English, Hindi
(Ravi Jain)

Resume format 2

Ravi Rampal

N S Road,
Near Idaly Paw,
Netu Anna,
Pincode-630021, Email :
ravirampal@gmail.com
Tamilnadu. Mobile : +91-
9876543210

OBJECTIVE

To acquire advanced knowledge in my concern. Seeking a challenging

career where my academic excellence will add value towards organization

and personal
ACADEMIC growth.
PROFILE

8 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
COURSE INSTITUTION BOARD PERCENTA YEAR OF
GE PASSING

B.E.(COMPUTER SASURIE ANNA


SCIENCE AND COLLEGE OF UNIVERSITY
ENGINEERING) ENGINEERING 69% 2012

ERODE HINDU
KALVI NILAYAM
HIGHER MATRICULATIO STATE 63% 2008
SECONDARY N HIGHER BOARD
SECONDARY
SCHOOL,ERODE

ACHIEVEMENTS

Got certificate of SOCIAL SERVICE in HELP AGE INDIA during school days.
Participated in TALENT SEARCH 2010 conducted by LEADS in Erode District level.

CO-CURRICULAR ACTIVITIES

Presented a conference on Presented a paper on Network security through quantum cry


Advanced Network security through quantum cryptography in PPG college of technolog

PROJECT SUMMARY

Title :Indexing Technique and Search Algorithm for


Spatial Data Ranking
Domain:Data Mining
Description: A spatial preference query ranks objects based on the qualities of features in their spatial n

9 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
PERSONAL DETAILS

FATHERS NAME : RAJ PAL

DATE OF BIRTH : 19rd DECEMBER 1991

GENDER : MALE

NATIONALITY : INDIAN

MOTHER TONGUE : TAMIL

LANGUAGES (SPEAK) : ENGLISH, TAMIL, HINDI

LANGUAGES (READ &WRITE) : ENGLISH, TAMIL, HINDI

***********

MS-Excel

Important Topics

10 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
The topics you'll need to know in order to complete the upcoming Excel homeworks include:

o FORMATTING

Numbers

Cells: background (pattern), font color, borders and alignment

Conditional Formatting

Dates

Merging and Centering Cells

o FUNCTIONS

AVERAGE

SUM

MAX

MIN

PMT

ROUND

TODAY

AVERAGE

o Printing

o Absolute and Relative Cell References (Pay particular attention to this one; it's where
many students lose points)

o Sorting - on two columns

o Working with multiple worksheets: referencing data from another sheet.

Excel Keyboard Shortcuts


The main improvement that the keystrokes offer is that you don't have to get
your hands off the keyboard and grab the mouse and start visually searching for
menus and buttons.

11 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Here are three abbreviation examples just to make the information coming next
clear:

Shift+SPACE means: pressing shift together with the space bar.


(This specific shourtcut will select a row)
Ctrl+C means: pressing Ctrl together with the letter C.
(This specific shourtcut will perform a "Copy" action).
Shift+Ctrl+Arrow Down means: pressing together the Shift key, with the Ctrl
key, with the Arrow Down key. You should press them down in the order they are
written here, otherwise it might not work. (This specific shourtcut will select all
the way to the bottom of a region)

Inserting rows, columns and worksheets:


Insert row: Alt+i and then r
Insert a column: Alt+i and then c
Insert new Worksheet: Alt+i and then w

How to remember?
You get into "Insert" mode by pressing Alt+i, and then the first letter of either
Row, Column or Worksheet.

To choose the next worksheet (Like going from Sheet1 to Sheet2):


Ctrl+PgDown
Choose the previous worksheet: Ctrl+PgUp

Efficiently selecting regions:

Select the whole worksheet: Ctrl+A


By holding down Ctrl+Shift and pressing one of the arrows, you can
accordingly select all the way to the left, right, top and bottom of the region.

12 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
For example: Selecting all the way to the bottom of the region:
Ctrl+Shift+Arrow down
One extremely efficient way of selecting a region, is to have the active cell inside
that region, and pressing Ctrl+Shift+8

Select the whole row by pressing Shift+SPACE, and column by pressing


Ctrl+SPACE

Jumping to specific locations in the worksheet:


Press Ctrl+G, and write the destination cell's address. For example: A100
Ctrl+End will jump to the last cell of your data in the worksheet (the most
bottom-right cell). It is relevant if you have already some data written in
your worksheet, otherwise in an empty worksheet it will jump to the really
last cell in the worksheet. Try it.
Ctrl+Home should jump the active cell to cell A1

Instantly opening useful dialog boxes:

Ctrl+1 (Ctrl and the number one) will open the "Format Cells" dialog box
(very useful!)

Alt+E and then S will open the "Paste Special" dialog box. If you want to
use the "Values" option from this dialog box, then continue and press Alt+v,
and finish with Enter.

Editing text:
Press F2 in a cell that has text, and a text cursor will appear at the end of
it, enabling you to add more content or edit the existing text. (This comes
instead of double clicking with the mouse inside the text, or clicking in the
formulas bar to edit it).

13 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Press Alt+Enter when writing text in a cell, to add a line break inside the
cell.

Miscellaneous

Freeze panes:
Put the active cell in the desired location, and press Alt+w and then F.
To remove the freeze panes, use the same shortcut.

Instantly insert a sum function:


Position the active cell underneath a column of numbers, and press Alt+= (Alt
key together with the equal sign)

Instantly insert dates:


To insert today's date, press Ctrl+; (a semicolon).
To have today's date change dynamically to reflect always the current date
(whenever the worksheet is opened), then write the function =today()

An instant chart:
Select your data (it should be organized neatly with rows and column headers),
and press the F11 key.

And of course: all the general MS Office Shortcuts

To open the "Find" dialog box: Ctrl+F


To open the "Find and replace" dialog box: Ctrl+H
Save file: Ctrl+S
Open a file: Ctrl+O
Add a new Excel file (a new workbook): Ctrl+N
Open the "Print" dialog box: Ctrl+P
Ctrl+C to Copy a selection, Ctrl+X to cut, Ctrl+V to Paste.
Save as : F12 key.

14 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Applying the formatting of Bold, Italic and Underline, will be accordingly: Ctrl+B,
Ctrl+I and Ctrl+U

The very basics of formulas


Overview:
Every formula in Excel starts with the equal sign (=).

This sign is very meaningful and tells the computer:


Whats written next to the Equal sign is not simple text. I want to calculate
something.
If a combination of a letter and a number appears next to it (eg. B6, G78, D13)
they refer to addresses of cells in the worksheet.
If arithmetic signs appear (signs like + - * / ) they refer to the operations they
mean (eg. adding, subtracting etc.)

Creating a formula step by step


1. Type the = sign.
2. Type the address of the cell to include in the formula.
-or-
2. Click with the mouse on the cell which you want to include in the formula (the
cells address will automatically appear in the formula, no need to type it).
3. Type an arithmetic sign (e.g. +, -, *, /, see list below)
4. Continue with adding your desired elements to the formula (it could be a
number, or another cells address, or a function).
5. End by pressing the [Enter] key.

Examples of formulas:
=B4
In words: Show me the value of the cell in address B4.
=B4*7+3
In words: Multiply the value of the cell B4 with 7, and add 3 to it.
=(B4+B5+B6)*D6
In words: add up the values of the cells B4, B5 and B6, and multiply their sum by
the value of cell D6.

You can include functions in your formulas:


=SUM(B4:B6)*D6
This does exactly the same as the last formula from above.

=B4*MIN(C1:C10)+7
In words: Multiply the value of cell B4 with the smallest number in the range of
cells C1:C10, and add 7 to it.

15 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Using the percentage sign (%):
Excel understands the % sign when attached to numbers inside a formula.

=A5*20%
In words: Multiply the value of cell A5 by 0.2 (or: give me 20 percent of A5).

=A5*115%
In words: Show me the value of cell A5 plus 15 percent of it.

=A5*(1+B5)
Lets assume the value 15% is written inside cell B5, then the formula in words
will be:
Show me the value of A5 plus 15 percentage of it. That seems the same as the
last formula, but the difference is now you can easily change the percentage, just
type a new value in cell B5 (eg. 20%) and the formula gives a new updated
result.

List of arithmetic signs (called also: operators):


+ plus
- minus
* multiplication
/ division

There is also:
^ exponential
for example =2^4 (will give the value of 16)

One note:
You should take into consideration the order in which arithmetics are calculated,
consider the following two formulas:
=1+2*3+4
=(1+2)*3+4
They are not equal, the first one gives the value of 11 (multiplication is calculated
first), and the second gives the value of 13.

Formula Examples Description


=sum(d2:h2) Sum the cells d2 through h2
=(c2*.20)/3 Multiply c2 x .20 then divide
by 3
=COUNTIF(H2:H120,"harkins") Count the number of cells in
the range H2:H120 that read
16 Window, Internet, DOS & Ms office Assignment.
Sisodia Institute of Management & Technology, Patna
harkins
=IF(SUM(D8:F8)>3,SUM(D8:F8)*30,SUM(D8:F8)*35) If the sum of cells D8:F8 are
greater than 3 then sum D8:F8
x 30 (true) else sum D8:F8 x
35 (false)

Use relative and absolute references:

Relative Referencing (most common)

A relative address automatically changes if you copy a formula to a new location on the
worksheet.

Exercise: Enter the AutoSum button to calculate the total expenses. (Use the Forecast sheet tab):

1. Click in the blank cell: b15


2. Click Home / click on AutoSum (editing group)
3. Press enter (formula is automatically entered: sum(b8:b14))
4. Copy the formula to the remaining cells: click on the bottom right corner of cell b15 and
drag to e15 or use the copy/paste function

Exercise: Type the formula to calculate Net Income:

1. Click in the blank cell: b17


2. Type =b6-b15
3. Press enter
4. Copy the formula to the remaining cells: click on the bottom right of cell b17 and drag to
e17 or use the copy/paste function

Exercise: Enter a formula to calculate the expenses for one year. Click in c8 (blank cell) and enter
the formula to calculate the expense in b8 for one year. Formula: =b8*12

1. Copy the formula to the remaining cells. Check the formula in several cells to view
relative referencing:
i. i.e.: = b8*12, =b9*12, =b10*12

Absolute Referencing
An absolute reference will always point to the location of a specific cell, even if you copy it. Great
option when projecting increases.
To define an absolute reference: Press f4 before the cell address or type $ before row and column. $G$5

Work Assignment
1. Create marksheet list of student including column heading Sl. No, Enrollment
No, Student Name, Course, Papers Marks(min five), total marks, average &

17 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
grade or division. Also apply College name in Heading with exam session.
Reference is in attachment.
a. Apply SUM function for total marks calculation, use AVERAGE function
for average calculation.
b. Calculate percentage
c. Use if (condition) to find grade & division
d. Create Collage name with word art tools.
e. Also format table for good visualization.
2. Create Invoice of student payment receipt, Goods Purchase.
3. Create Employee Payroll system including Emp_code, Employee Name,
Department, Post, Basic salary, HRA, DA, MA, TA, deduction like LIC, IT.
Calculate HRA 5% of Basic salary, DA 2% of Basic Salary, MA=1000, TA=1000
and IT(Income Tax) 2% of Basic sal. Calculate Gross salary by adding Gross
sal=Basic salary+HRA+DA+MA+TA, & find Net salary of employee by using
calculation with formula Net salary= Gross Sal- (LIC+IT).
a. Also use drop down list for choosing Department & Post.
b. Auto calculates Basic salary by choosing any post using IF (Cond.).
4. Create student & employee attendance sheet and count total no of present &
absent by using COUNTIF function.
5. Calculate chart for maintain data of students in a college having complete
detail like Student Name, Registration No, Session, Course, Duration, Course
fee, Discount allow , total course fee, Amount paid at time of admission, Rest
due amount.
a. Apply drop down list
b. Apply IF formula
c. And basic arithmetic formula.
d. Also apply condition color formation
6. Apply different types of validation in cell like :
a. How to create drop down list
b. Only accept date from 1-Jan-2012 to 30-Dec-2016.
c. Only accept value between 10 to 100
d. Only accept string character

18 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
e. If enter character is Pass than color of cell turn yellow.
f. Dont leave any cell blank
7. Enter detail of sales in financial year 2010-11, 2012-13 and 2014-15 of
several goods item with their quantity and price. Show the total sale in form
of chart.
8. Apply & view below mention command:
a. Goal Seek & Scenario in What-if analysis.
b. Formula audit
c. How to remove duplicate data
d. How to apply conditional formatting
e. Cell validation
f. Protect sheet 7 workbook
g. Hide/Unhide sheet
h. Rename sheet
i. Color Sheet Tab
j. Insert & delete Row & Column
k. Apply filter
l. Apply sorting Ascending & descending
m. Merging / unmerging cell
n. Cell formatting for number, text
o. Apply header & footer
p. Apply freeze pane
q. Add new comments
r. Set print command & setting

**********

MS-Power Point

19 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
PowerPoint Lab Assignment

Your Task:

Create a 6-slide Power Point presentation that includes the features learned during class. Keep in mind
the qualities of making an effective PowerPoint (see handout). Be sure to select an appropriate
background and text that contrasts each other.

Please use the features described in class, including:

1) Clip art graphics 6) Background

2) Graphics from the web 7) Bullet Lists of items

3) Transitions from slide to slide 8) Duplicate Slide

4) Text animation 9) Adding Hyperlinks

5) Word Art and other shapes

Your Task 2:

1. Create a PowerPoint presentation (15 slide minimum) relevant to your course of study or field of
work.
2. Create a PowerPoint presentation to prepare your digital resume or Portfolio.
3. Create a PowerPoint presentation to prepare course slide from any one below given topic:
a. Detail about Hardware
b. Detail about software
c. Detail about wearable Computer
d. Detail about cell structure, Molecular Biology.

Note that Your presentation should include the following:


1. Appropriate design template
2. Title Slide: Include your name in footer area of title slide master
3. Content Slides: Include date and slide number in footer area of slide
master
4. Image on at least one slide (correctly sized)
5. Hyperlink
Optional: Add slide transition, animation, and sound if appropriate to your topic and
intended audience.
Post the presentation to your portfolio and include a brief summary (separate
paragraph) of the purpose of your presentation, intended audience, and any design tips
applied.

**********

20 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
DOS ASSIGNMENT
In Windows XP, Select the following path :
Start -> Programs -> Accessories -> Command Prompt
It will display command prompt as C:\> _ , by default.
The DOS commands can be typed at this prompt.

1. Internal Commands

Command Used for Format & Example


Gives help on all DOS C:\> help <commandname>
HELP commands or a specific C:\> help
command C:\> help cls
It clears the screen and the
cursor waits in the top left C:\> Cls
CLS
corner of the screen with
current working prompt
Displays the current DOS
C:\> Ver
VER version

Used to display and change


the system date.
Displays the current date C:\> DATE [mm-dd-yy]
DATE
and C:\> Date
prompt user to change the
date if desired.
Used to display and change C:\> TIME [hh:mm:ss:xx]
TIME
system time. C:\> Time
DIR List contents of the C:\> DIR [drive :] [path] [filename] [.ext]
specified [/option]
directory Drive specifies the drive name
Path - specifies the list of subdirectories to the
required directory
Filename the name of the file
Ext - specifies the extension of the file.
Option specifies one or more options to be
used
/p - Page-wise listing
/w - Wide-format
/s - list the files of subdirectories below
specified directory.
/o - ordered listing (can be reversed by -)
D - chronological order
E - extension-wise, then by name
G - grouped by subdirectories
N filename-wise, then extension
S file size
/a - attributewise listing (can be reversed by -)
21 Window, Internet, DOS & Ms office Assignment.
Sisodia Institute of Management & Technology, Patna
D Directories only
R - Read-only files
H Hidden files
A Archive files
S System files
C:\> dir
C:\> dir *.exe
C:\> N??.exe
Here * and ? are wild-card characters . A
wildcard
character * can be replaced by any letter or
letters while ? can be replaced by any single
letter , before executing the command
C:\> dir a*.*
C:\> dir c:\d2\d21 /p
C:\> dir /A:h
C:\> dir /o:s /A:R
C:\> copy <source> <destination>
C:\> copy con a.txt
Copies the contents typed at the console to
file
a.txt. Input has to be terminated by Ctrl+Z.
Used to copy or append
C:\> copy a.txt b.txt
COPY files
C:\> copy a.txt + b.txt c.txt
to other files.
Copies the appended file of a.txt and b.txt to
c.txt
C:\> Copy c:\d2\d21\c.doc d:
Copies files c.doc to floppy in drive d by the
same name
C:\> Del filename
DEL Used to delete a file
C:\> Del a.txt
Display the contents of the C:\> Type <filename>
file on the screen or it can C:\> type a.txt
TYPE
be C:\> type a.txt | more
sent to the printer . C:\> type a.txt > prn
Changes name of an
RENAME C:\> ren <old_filename><new_filename>
existing
or REN C:\> ren a.txt b.txt
file.
PATH [[drive:] path ][;[drive:] path ]]
C:\> Path
Used to display the current Displays the current search path as
path or set a new search PATH C:\DOS; C:\system32; D:\PROGRAMS
PATH
path Any executable program will be first searched
for the executable files. in
DOS, then system32 and then PROGRAMS
directory
External Commands
ATTRIB Used to change or display ATTRIB properties filename + sets

22 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
- removes the set attributes
Properties R : Read only
A : Archive
S : System file
various file attributes.
C:\> ATTRIB +R a.txt
Makes the file a.txt Read-only
C:\> ATTRIB +H C:\D2\D21\a.txt
Makes file a.txt hidden file
FORMAT [drive:] [/switches]
Switches
/I Formats double sided disk as a
used to format a disk into
single sided disk
sectors and create a File
/B leaves room for system files but
Allocation Table (FAT) which
FORMAT system files are not copied
records all files on the disk.
/Q Quick formatting
Previous disk contents are
/S Transfer DOS system files to the
destroyed.
formatted disk
/U Prompts the user to add a volume
label to the disk
CHKDSK filename option
Option
Used to check the disk for
/F Automatic correction of errors
CHKDSK errors and displays a status
/V Displays a series of messages
report.
indicating the progress
C:\> CHKDSK a:
Used to recall previous
DOSKEY commands using up and
down arrow keys

Exercise: Type the following commands and explain what the command is used for and give
the output of the command Output:
Sr. No Command Explanation Output
1. copy con my.txt
2. copy my.txt ab.txt
3. dir *.txt
4. ren *.txt *.bak
5. dir
6. attrib +h ab.bak
7. dir *.bak
8. ver
9. type my.bak
10. path
11. cls
12. help dir
13. dir /A:h
14. help attrib
15. del my.bak

23 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna

Set A
Give the DOS commands to be used to perform following set of tasks

1.
Sr. No Task Command

1 Create a file named a.txt containing your


name and address
2 Change the name of the above file as
self.txt
3 Create a copy of the above file as bio.txt
4 Display the contents of the file self.txt
5 Change the file attribute to hidden

2. .
Sr. No Task Command

1 Create a file named a.txt containing the


college details
2 Change the name of the above file to
college.txt
3 Create a copy of the file by name
course.txt
4 Display the contents of the file course.txt
5 Change the file attribute to read only

3. .
Sr. No Task Command

1 Display the files which have the extension


txt
2 Rename the extension from txt to doc

3 Remove all the files created starting with


the name 1
4 Chkdsk any of the drives with display and
correction options
5 Set a new search path

24 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna

4. .
Sr. No Task Command

1 Create a file named a.txt containing


names of five students
2 Change the name of the file to b.txt

3 Create a copy of the file by name copy.txt


4 Display the contents of the file copy.txt
5 Change the file attribute to hidden
6 Display the current path

Set B
1. By pressing the arrow keys, the commands those have been used can be used again. How is
it really being done?
Ans:

2. Create a file, change it into Read only file. Create one more file with the same name. Are
both the files existing or any one is only existing? Why?
Ans:

3. Display the file content pagewise if it goes more than the page.
Ans:

4. Set the date to 02-30-09. Does the system accept the date? Why?
Ans:

Exercise 2

Creating the directory structure and Batch file in the DOS

You should read following topics before starting this exercise


1. Complete the previous exercise
2. The concepts of Directories and Batch Files

25 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
Directory system is used for organizing the files. The directory is a group of files stored together
and identified by a name. The directories are organized in a hierarchical structure i.e. a
directory can contain subdirectories which in turn can contain files and / or more directories.

A batch file is a simple text file with an extension .BAT. It contains a set of DOS commands
when the name of batch file is typed at the DOS prompt, all the DOS commands within the file
are executed one by one. We will study the dos commands for creating and maintaining
directory structure

Command Used for Format and Example


MD [drive:][path]<directory name>
It creates a new
MKDIR or C:\> md newdir
directory
MD C:\> mkdir c:\>onedir
make directory
C:\> md c:\onedir\twodir
CD [drive] [path] <directory name>
Changes the current
CHDIR or C:\> cd c:\onedir
directory to the specified
CD C:\> cd .. changes to the parent
directory
directory
It is used to remove an
empty directory i.e. all
RMDIR or the RD [drive:] [path] <directory>
RD files are already deleted C:> rd newdir
in
that directory.

Batch file commands


Command Used for Format and Example
Does not display command
@ @ date
on screen
Used to suppress or
Echo on
display
ECHO Echo off
commands in the batch file
Echo hello
on the screen
Used to add comments in a
REM REM changing the directory
batch file
Used to suspend batch file
processing and waits for Pause [remark]
PAUSE
user to press any key Pause changing the directory
before resuming execution
Redirects batch processing GOTO label
GOTO to the command following GOTO end
the specified label. The label is written as :label
If [NOT] string==string2 command
Checking conditions before If [NOT] exist file command
IF
executing a command If [Not] errorlevel number
command.
SHIFT All parameters are shifted

26 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna
one position to the left.

AUTOEXEC.BAT (automatic execution batch file) is a special batch file, found in the root
directory of the boot disk. This file will automatically run before control of the computer gets
turned over to the user.

DOS had an AUTOEXEC.BAT that looked like this:

@Echo OFF
Path C:\DOS;C:\;C:\BAT;C:\UTILITY;
Prompt $p$g
Set TEMP=C:\Temp
C:\Utility\NumLock -
CD\
CLS

This file sets the PATH, defines a prompt and a temporary directory, runs a utility program,
changes to the root directory and then clears the screen.

Type in the following set of commands to create a batch file named mydir.bat

copy con mydir.bat


echo *** Batch file for creating directories ****
pause
mkdir fy sy ty
chdir fy
@echo off
mkdir morning evening
cd ..\ty
mkdir batch1 batch2
cd ..
^Z

Execute the batch file mydir.bat by typing mydir at the prompt. Use dir and cd command to view
the directory structure created.

27 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna

28 Window, Internet, DOS & Ms office Assignment.


Sisodia Institute of Management & Technology, Patna

**************

29 Window, Internet, DOS & Ms office Assignment.

You might also like