Lab Experiment No.02: Introduction To Computing (COMP-01102) Telecom 1 Semester
Lab Experiment No.02: Introduction To Computing (COMP-01102) Telecom 1 Semester
OBJECTIVE:
EQUIPMENT REQUIRED:
Desktop Computer
INTRODUCTION:
DOS, the acronym for Disk Operating System, is an operating system with a command-lineinterface
used on personal computers. It provides a set of commands that enables the users toaccess or
manipulate information on their disks, as well as simply interact with theircomputer.
Changing drive
Type drive letter of the drive to which you want to switch to, on the command promptfollowed by‘:’
Example: c:>d:This will change the current drive from C to D.
Result: d:>
Wild Cards
DOS recognizes two wild cards:
The asterisk (*) represents one or more characters that a group of files has in common.
The question mark (?) represents a single character that a group of files has in common.
dircommand can be modified using these wild cards and other switches as follows sothat only one
screen of selected information is displayed at a time.
o dir/p Lists the directory contents page wise.
o dir/w Lists the directory contents in a wider format, that is, only file
namesand extensions.
o dir/w/p Lists the directory contents in a wider format, page wise.
typeto view a file on the screen. Only text based files can be viewed, as DOS supportsonly
such files.
Prompt on screen: drive:>
Syntax: type drive:\path\filename
Example: c:\>type cfile.txt This will list ‘cfile.txt’.
Files longer than one screen scroll off to the top. To avoid this,
use |more suffixfollowing the command.
Example: c:\>type cfile.txt |more
Disk Management
format to format a disk
Prompt on screen: drive:>
Syntax: format drive:
Example: c:\>format Z: This will format Flash memory stick in drive Z.
Home Tasks
1. Write command to display all files having extension ‘docx’.
2. Write command to display all files of all types starting with letter ‘s’.
3. Write a command to copy the file assignment of type docx from the directory ‘ITC’ of
drive D to another directory “FCE” in drive F.
4. Write a command to delete the directory as well as the files of the directory ‘world’ on
drive E.
5. Write command to copy all the files beginning with ‘m’ and whose file names has a‘txt’
extension from drive A to the ‘\document’ directory on drive C.Discuss different types
of CPUs.
6. Write set of commands to create a directory ‘practical’ on drive F, and then move
intoit. Now list all files present in it, then go back to root drive F.
F:\ ed practical
F:\>