Bba 1 Sem Computer File
Bba 1 Sem Computer File
COLLEGE
FARIDABAD
PRACTICAL FILE
ON
MS-DOS
SESSION-2021-22
Submitted To : ……………………..
Submitted By : Aditya
2. MEANING OF COMPUTER
& MS-DOS
3. MS-DOS COMMANDS
5. EXTERNAL DOS
COMMANDS
INTRODUCTION
Short for Microsoft Disk Operating System, MS-DOS is a non-graphical command line
operating system derived from 86-DOS that was created for IBM compitable
computers. MS-DOS Originally written by Tim Patterson and introduced by Microsoft in
August 1981 and was last updated in 1994 when MS-DOS 6.22 Was released. MS-DOS
allows the user to navigate, open, and otherwise manipulate files on their computer
from a command line instead of a GUI like Windows.
Today, MS-DOS is no longer used; however, the command shell, more commonly
known as the Windows command line is still used by many users. The bottom image
is an example of a Windows command line running in Microsoft Window 10.
Most computer users are only familiar with how to navigate Microsoft Windows using
the mouse. Unlike Windows , MS-DOS is navigated by using MS-DOS commands. For
example, if you wanted to see all the files in a folder in Windows you would double-
click the folder to open the folder in Windows Explorer. In MS-DOS, you would
navigate to the folder using the cd command and then list the files in that folder
using the dir command.
MEANING OF COMPUTER
The word compute is derived from the Latin word ‘computare’, was meaning
“arithmetic accounting”. The Computer meaning is the digital device that stores
information in memory using input devices and manipulate information to produce
output according to given instructions. The actual machinery, the physical parts of a
computer system refer to as Computer Hardware, the instructions (a program) that
tells the computer what to do or how to do that is called Computer Software (often
called just software).
DOS Commands are instructions to perform tasks on files and directories very useful to
Windows users. DOS commands are case insensitive and as you already known file is
the area where we store group of information or data, and collection of group of files
is called a directory.
In MS-DOS the file name follow 8dot3 format and is divided into two parts Primary
name and Secondary name. Primary name is upto 8 characters long and secondary
name is upto 4 characters with dot. For example, in the file-name Logo.jpg, Logo is
the primary name and .jpg is the secondary name. Secondary names are fixed for
particular type of file, meaning for system files the secondary name is designated as
.sys, for text files it is .txt and so on. To name a file or directory special characters
like <>,./*?|& Space are not allowed. Here is the list of some of the important types
of files with their default secondary names : DOS Commands are divided into 2 types :
1. Internal Commands
These are for performing basic operations on files and directories and they do not
need any external file support.
2. external commands
These external commands are for performing advanced tasks and they do need
some external file support as they are not stored in COMMAND.COM.
These are also Batch commands or Batch files which are text files that contain a
list of external and/or external commands which are executed in sequence when
the batch file is executed. AUTOEXEC.BAT gets executed automatically on booting.
Most Commonly Used DOS Commands
1. DATE
This command is used to display the system current date setting and prompt you
If you type DATE without parameters then it displays current date and prompts to
enter new date. We should give new date in mm-dd-yy format. If you want to keep
the same date just Press ENTER. DATE command with /T switch tells the
command to just output the current system date, without promptimg for a new
date.
2.TIME
This command is used to displays or set the system time.
Same as DATE command, typing TIME with no parameters displays the current time
and a prompt for a new one. Press ENTER to keep the same time. TIME
command used with /T switch tells the command to just output the current system
3. COPY CON
It is used to create a file in the existing directory. Here CON is a DOS reserved
Syntax is: COPY CON filename after that press Enter and start typing your text
and after you,re done typing your text, to save and exit hit F6 key.
are as follows :
information or summary
continue.
Note that switches may be different in the DIRCMD environment variable in which
case just override present switches by prefixing any switch with -(hyphen), for
example instead of using /P use /-P
8. PATH
This command displays the path that how we have come to the present position or
Typing PATH without any parameters displays the current path under current
directory. Typing PATH; clears all search-path settings and direct cmd.exe to
search only in the current directory and including %PATH% in the new path
9. VER
This command displays the version of the Microsoft Windows running in your
Computer.
10. VOL
It displays the disk volume lable and serial number, if they exist for the drive
Using switch /B you can force the edit in monochrome mode. /H displays the
maximum number of lines possible for your system hardware. Whereas using
/R and /S one load files in read-only mode and force the use of short filenames
respectively. [filename(s)] is used to specify file(s) to go edit. You can use wil-
disk.
[/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N]
3. LABEL
It is used to create, change, or delete the volume label of a
Here, [drive:] is for specifying the drive letter of a drive to be labeled and
[label] sepicifies the label of the volume risk. [/MP] is used to specify that
specify volume name, usually mentioned after drive letter followed by colon
4. DISKCOPY
This command copies the contents of one floppy from the source drive to a
copies the data from particular position on the source disk to exactly the same
copies contents of A: and B: drive. This command can be used with /V switch
of disk like serial number, volume label, memory and other properties along with
Syntax is CHKDSK [volume path] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]
[volume path] is where you specify the drive letter followed by a colon and
volume name to be checked. Using /F switch allows you to fix errors on the
disk./V display full path and/or cleanup message if any./R is used in tandem
with /F and used to locate bad sectors and recover readable information. If you
wanted to perform a less vigorous check of index entries on the disk then the
right option is to use /I and /C rather than /R as they skip checking of cycles on
volume and helps in reducing the amount of time required to run CHKDSK.
6. TREE
This command is very useful to view the list of directories and subdirectories
present on the disk in graphical form. If you wanted to include files also with
directories and subdirectories, then you’ll have to give the command line as
tree/f which presents the tree view of all the content on your disk. Here is the
In case you wanted to use ASCII instead of extended characters, then go ahead
and there’s not getting back. So, keep caution while using this command.
8. DOSKEY
This command is generally used to edits command lines and recalls commands.
previously given commands stored in memory and [text] specifies the commands
9. FIND
This command searches for a specific text string in a file or files. Syntax is
The basic essential elements in the command line for find are – the atring
to find in the file and [[drive:][path]filename(s)] specifies the file or files where
the text string search bis to be done. If a path is not specified,FIND searches the
text typed at the prompt or piped from another command. When you append /OFF
in the command line, it searches and finds even those files with offline attribute
set. Apart from searching the textb string, this command is useful in:
Displaying only the number count of lines containing the text string@/C
Displaying line numbers with the displayed lines@/N
10. SORT
FEATURES OF DOS
It is a 16-bit operating system.
It is free OS.
With the advantages, it has many disasdvantages too, which are listed below: