SlideShare una empresa de Scribd logo
1 de 4
DOS Booting
Bootstrap
The term boot is short for bootstrap, and the metaphor
is to imagine a person wearing boots who reaches down, pulls on their bootstraps,
and lifts themselves into the air. Of course, this only is possible in cartoons,
but it is a vivid image. With the power off, a computer is a dead hunk of silicon,
steel, and wires. During the boot process, it has to wake up, find all of its
peripherals, and configure itself to run software. It takes some doing to make
all of this happen.
BIOS
The process begins with the BIOS (Basic Input Output System), which is a series of
instructions that are contained on a ROM (read-only memory) chip. In addition to the
ROM BIOS there are settings that are held on a bettery-powered chip. This chip is
frequently made of a special material called CMOS (complementary metal oxide
semiconductor). These settings are configurable by the user, and can be accessed at
the beginning of the boot process by pressing a special key, such as F1 or Delete. The
settings held in the CMOS tell the computer which disk drives are present, and the
order in which these disks should be checked for boot information.
POST
The very first thing that happens in the boot sequence is the POST (Power On Self
Test). This is run from the BIOS, and allows the computer to check for memory (you
see it clicking through the available memory on your screen), check for a keyboard,
and check for disk drives. If it does not find these things, it gives an error, sometimes
on the screen, but more often by emitting a series of beeps through the pc built-in
speaker. There are different varieties of BIOS, and each has its own BEEP codes,
which are used to diagnose problems during the boot process. On the screen you may
see errors like “keyboard failure”, “Failure accessing floppy disk”, etc.
MBR
Assuming that the keyboard is working, the memory is there, and it can find the
proper disk drive, the BIOS then looks to the appropriate disk for further instructions.
Whether a floppy or a hard disk drive, the very first sector of a bootable disk ( the
boot sector) contains the Master Boot Record (MBR). The Master Boot Record
contains information on where to go next in the boot process. If the Master Boot
Record is found, the boot process goes forward. If it is not found, or is damaged in
some way, you may receive an error that says that the disk is not bootable, or is “not a
system disk”. Everything said up to this point is generically true of the boot process
for all Intel-based PCs, regardless of the operating system. From this point on, the
details will be given for DOS. Some of these steps you may find are retained in
Windows, but that is not our concern here.
The DOS Boot Process
When DOS was first used by IBM for its personal computers, the OS was called PC-
DOS, and IBM gave certain names to the files that made them sound like IBM-
specific files. But as soon as clone-makers (e.g. Compaq, Dell) starting making IBM-
compatible clone computers, Microsoft released a clone version called MS-DOS, and
renamed some of those files. Now MS-DOS is much more widely used than PC-DOS,
and MS-DOS names are more common. For DOS systems, the MBR will point the
computer to two hidden start-up files. The first of these files is IO.SYS (or for IBM
computers, IBMBIO.COM). This must be the very first file (physically) on your boot
disk or your disk will not boot. The second file is called MSDOS.SYS (or
IBMDOS.COM for IBM computers). This must be the second file (physically) on the
boot disk or it will not boot. This is why you cannot create a boot disk by simply
copying thse files to blank floppy disk. They would be on the disk, but they would not
be in the proper position for the boot process to find them. To create a “system disk”,
you need to use a particular command that tells the computer to place these
files in the precise position needed for booting to occur.
The DOS Boot Sequence
IO.SYS (or IBMBIO.COM) contains the interface between MS-DOS (or PC-DOS)
and the I/O subsystem. This allows the OS to communicate with the basic peripherals
and perform input and output tasks. MSDOS.SYS (or IBMDOS.COM) is the Kernel
of the OS. It interacts with the hardware and helps process the various DOS functions.
Both IO.SYS and MSDOS.SYS are hidden files, which means that ordinarily
you would not be aware of them, and they would not appear in a directory listing.
This is to protect the OS from someone mistakenly deleting these key files and
rendering the computer unable to boot. The third file to be loaded is CONFIG.SYS.
As the name implies, this file contains information that helps to configure your
system. This is where you would install devices and drivers, for instance. In DOS it is
common to have your mouse, sound card, and CD-ROM drive installed here, as well
as certain memory management and other functions. If there is no CONFIG.SYS file
present, a default version contained within MSDOS.SYS is loaded. The fourth file to
be loaded, which is automatically added to the disk when you make a system disk, is
COMMAND.COM. This file does not need to be in any particular physical location
on the disk, but does need to be in the root directory. This file is a command
interpreter, which means that it can interpret the commands you issue. Every OS has
some type of command interpreter, though they may use a different name. In UNIX
(and Linux), for instance, the command interpreter is generally called a shell.
COMMAND.COM interprets all of the Internal Commands. We’ll discuss these later,
but for the moment think of them as the most common commands that DOS uses.
The fifth, and last file to be loaded is AUTOEXEC.BAT. This is a batch file, which
means that it contains a series of commands that are executed whenever the file is run.
This file is “automatically executed” when you boot, hence the name. If there is no
AUTOEXEC.BAT file present, a default version is run. You can usually tell because
if the default version is run you will be asked to enter the date and the time. After all
of this, if it all works correctly, you will finally see the prompt, which will most likely
look like one of these:
A:>
C:>
DOS Wildcards; File Attributes
For this lesson we are going to fill in a couple of concepts that
we will need before we go further with directories.
Wildcards
Wildcards are characters that can be used to stand-in for unknown
characters in file names. In card games, a wildcard is a card that can match
up with any other cards. In DOS, wildcard characters can match up with any character
that is allowable in a file name. There are two wildcards in DOS:
* = matches up with any combination of allowable characters
? = matches up with any single allowable character
Of course, since these two characters are used for wildcards,
they are not allowable in filenames themselves. A filename like myfile?.txt
would not be allowed. If you tried to create a file with this name you would
get an error message “Bad file name.” But wildcards are very useful
in any DOS command which uses a filename as an argument (which is most DOS
commands,
come to think of it.)
The asterisk character, *, can stand in for any number of characters.
Some examples of this command:
c:>del *.doc
This command would delete every file with the doc extension
from the root directory of C: . So files like myfile.doc, testfile.doc, and
123.doc would all be deleted.
C:>copy ab*.txt a:
This command would copy every file that began with ab,
and had an extension of txt, to the floppy drive A: . So files like abstract.txt,
abalone.txt, and abba.txt would all be copied.
C:temp>del *.*
This is the fastest way to clean out a directory. This command
will delete every file in the directory C:temp. The first apostrophe covers
every filename, and the second one covers every extension.
The question mark wildcard, ?, stands in for any single character.
Some examples of this command:
C:>del ?.doc
This command would only delete files that had a single character
filename and a doc extension from the root directory. So a file like
a.doc or 1.doc is history, but a file like io.doc is perfectly
safe, since it has two characters.
C:>copy ab?.txt a:
This command would copy any file with a three-letter name, of
which the first two letters were ab, and with a txt extension,
to the floppy drive A: . So files like abz.txt and ab2.txt would
be copied.

Más contenido relacionado

La actualidad más candente

CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command promptsAhmed Hesham
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsBITS
 
Cd rom how solaris manages cd-rom and diskette devices
Cd rom how solaris manages cd-rom and diskette devicesCd rom how solaris manages cd-rom and diskette devices
Cd rom how solaris manages cd-rom and diskette devicesBui Van Cuong
 
Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line BasicsWe Ihaveapc
 
File Management Presentation
File Management PresentationFile Management Presentation
File Management PresentationSgtMasterGunz
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsBITS
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsJoachim Jacob
 
UNIX(Essential needs of administration)
UNIX(Essential needs of administration)UNIX(Essential needs of administration)
UNIX(Essential needs of administration)Papu Kumar
 
3.1.b how to - colors and prompts in bash
3.1.b how to - colors and prompts in bash3.1.b how to - colors and prompts in bash
3.1.b how to - colors and prompts in bashAcácio Oliveira
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsBITS
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partIKedar Bhandari
 

La actualidad más candente (19)

MS DOS
MS DOSMS DOS
MS DOS
 
Dos ckass nots
Dos ckass notsDos ckass nots
Dos ckass nots
 
CD Media
CD MediaCD Media
CD Media
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
Edubooktraining
EdubooktrainingEdubooktraining
Edubooktraining
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformatics
 
Cd rom how solaris manages cd-rom and diskette devices
Cd rom how solaris manages cd-rom and diskette devicesCd rom how solaris manages cd-rom and diskette devices
Cd rom how solaris manages cd-rom and diskette devices
 
Ubuntu File System
Ubuntu File SystemUbuntu File System
Ubuntu File System
 
Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line Basics
 
File Management Presentation
File Management PresentationFile Management Presentation
File Management Presentation
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
 
UNIX(Essential needs of administration)
UNIX(Essential needs of administration)UNIX(Essential needs of administration)
UNIX(Essential needs of administration)
 
MICROSOFT DOS MUKUND
MICROSOFT DOS MUKUNDMICROSOFT DOS MUKUND
MICROSOFT DOS MUKUND
 
3.1.b how to - colors and prompts in bash
3.1.b how to - colors and prompts in bash3.1.b how to - colors and prompts in bash
3.1.b how to - colors and prompts in bash
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Linux Basics
Linux BasicsLinux Basics
Linux Basics
 
Unix Administration 4
Unix Administration 4Unix Administration 4
Unix Administration 4
 

Destacado

He 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know aboutHe 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know aboutSuneel Dogra
 
White paper desktop-virtualization-ps
White paper desktop-virtualization-psWhite paper desktop-virtualization-ps
White paper desktop-virtualization-psSuneel Dogra
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)Suneel Dogra
 

Destacado (8)

He 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know aboutHe 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know about
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaver
 
Internet
InternetInternet
Internet
 
Html
HtmlHtml
Html
 
White paper desktop-virtualization-ps
White paper desktop-virtualization-psWhite paper desktop-virtualization-ps
White paper desktop-virtualization-ps
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
 
cloud-computing
cloud-computingcloud-computing
cloud-computing
 
Business model
Business modelBusiness model
Business model
 

Similar a Dos lesson 11

Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer susir
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfshubhangisonawane6
 
011300 Intro To Dos
011300 Intro To Dos011300 Intro To Dos
011300 Intro To DosCTIN
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptxemsResulzade1
 
Windows booting
Windows bootingWindows booting
Windows bootinggirish1993
 
OSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptxOSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptxKTheKing1
 
Ms dos
Ms dosMs dos
Ms dosNICT
 
Prepare Installer Week 1.pdf
Prepare Installer Week 1.pdfPrepare Installer Week 1.pdf
Prepare Installer Week 1.pdfemersonrebibis1
 
ITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating SystemITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating SystemBlossom Sood
 
Disk operating system
Disk operating systemDisk operating system
Disk operating systemRaza Jaan
 
Computer hardware and maintenance
Computer hardware and   maintenanceComputer hardware and   maintenance
Computer hardware and maintenanceImran Khan
 
There are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxThere are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxsusannr
 
There are 4 parts for the project. The question may be long to r.docx
There are 4 parts for the project. The question may be long to r.docxThere are 4 parts for the project. The question may be long to r.docx
There are 4 parts for the project. The question may be long to r.docxsusannr
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Toolszatax
 

Similar a Dos lesson 11 (20)

Dos commands
Dos commandsDos commands
Dos commands
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
 
168054408 cc1
168054408 cc1168054408 cc1
168054408 cc1
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
011300 Intro To Dos
011300 Intro To Dos011300 Intro To Dos
011300 Intro To Dos
 
Lec05
Lec05Lec05
Lec05
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptx
 
Windows booting
Windows bootingWindows booting
Windows booting
 
OSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptxOSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptx
 
Ms dos
Ms dosMs dos
Ms dos
 
Prepare Installer Week 1.pdf
Prepare Installer Week 1.pdfPrepare Installer Week 1.pdf
Prepare Installer Week 1.pdf
 
ITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating SystemITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating System
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Computer hardware and maintenance
Computer hardware and   maintenanceComputer hardware and   maintenance
Computer hardware and maintenance
 
There are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxThere are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docx
 
File and fat
File and fatFile and fat
File and fat
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
There are 4 parts for the project. The question may be long to r.docx
There are 4 parts for the project. The question may be long to r.docxThere are 4 parts for the project. The question may be long to r.docx
There are 4 parts for the project. The question may be long to r.docx
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 

Más de Suneel Dogra

Distributed databases
Distributed databasesDistributed databases
Distributed databasesSuneel Dogra
 
Data base management system
Data base management systemData base management system
Data base management systemSuneel Dogra
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1Suneel Dogra
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1Suneel Dogra
 
Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014Suneel Dogra
 
Cloud computing application
Cloud computing applicationCloud computing application
Cloud computing applicationSuneel Dogra
 
Fast track to linux
Fast track to linuxFast track to linux
Fast track to linuxSuneel Dogra
 
A sorted linear array
A sorted linear array A sorted linear array
A sorted linear array Suneel Dogra
 
Jumping statements
Jumping statementsJumping statements
Jumping statementsSuneel Dogra
 
Five tools to professional coding
Five tools to professional codingFive tools to professional coding
Five tools to professional codingSuneel Dogra
 
Machine language to artificial intelligence
Machine language to artificial intelligenceMachine language to artificial intelligence
Machine language to artificial intelligenceSuneel Dogra
 
Virtualization defined-wp
Virtualization defined-wpVirtualization defined-wp
Virtualization defined-wpSuneel Dogra
 

Más de Suneel Dogra (20)

Advanced html
Advanced htmlAdvanced html
Advanced html
 
Sql
SqlSql
Sql
 
File organisation
File organisationFile organisation
File organisation
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
Database models
Database models Database models
Database models
 
Data base management system
Data base management systemData base management system
Data base management system
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1
 
Internet security
Internet securityInternet security
Internet security
 
What is the linux
What is the linuxWhat is the linux
What is the linux
 
Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014
 
Cloud computing application
Cloud computing applicationCloud computing application
Cloud computing application
 
Fast track to linux
Fast track to linuxFast track to linux
Fast track to linux
 
A sorted linear array
A sorted linear array A sorted linear array
A sorted linear array
 
String in c
String in cString in c
String in c
 
Jumping statements
Jumping statementsJumping statements
Jumping statements
 
Five tools to professional coding
Five tools to professional codingFive tools to professional coding
Five tools to professional coding
 
Machine language to artificial intelligence
Machine language to artificial intelligenceMachine language to artificial intelligence
Machine language to artificial intelligence
 
Symbol shortcuts
Symbol shortcutsSymbol shortcuts
Symbol shortcuts
 
Virtualization defined-wp
Virtualization defined-wpVirtualization defined-wp
Virtualization defined-wp
 

Dos lesson 11

  • 1. DOS Booting Bootstrap The term boot is short for bootstrap, and the metaphor is to imagine a person wearing boots who reaches down, pulls on their bootstraps, and lifts themselves into the air. Of course, this only is possible in cartoons, but it is a vivid image. With the power off, a computer is a dead hunk of silicon, steel, and wires. During the boot process, it has to wake up, find all of its peripherals, and configure itself to run software. It takes some doing to make all of this happen. BIOS The process begins with the BIOS (Basic Input Output System), which is a series of instructions that are contained on a ROM (read-only memory) chip. In addition to the ROM BIOS there are settings that are held on a bettery-powered chip. This chip is frequently made of a special material called CMOS (complementary metal oxide semiconductor). These settings are configurable by the user, and can be accessed at the beginning of the boot process by pressing a special key, such as F1 or Delete. The settings held in the CMOS tell the computer which disk drives are present, and the order in which these disks should be checked for boot information. POST The very first thing that happens in the boot sequence is the POST (Power On Self Test). This is run from the BIOS, and allows the computer to check for memory (you see it clicking through the available memory on your screen), check for a keyboard, and check for disk drives. If it does not find these things, it gives an error, sometimes on the screen, but more often by emitting a series of beeps through the pc built-in speaker. There are different varieties of BIOS, and each has its own BEEP codes, which are used to diagnose problems during the boot process. On the screen you may see errors like “keyboard failure”, “Failure accessing floppy disk”, etc. MBR Assuming that the keyboard is working, the memory is there, and it can find the proper disk drive, the BIOS then looks to the appropriate disk for further instructions. Whether a floppy or a hard disk drive, the very first sector of a bootable disk ( the boot sector) contains the Master Boot Record (MBR). The Master Boot Record contains information on where to go next in the boot process. If the Master Boot Record is found, the boot process goes forward. If it is not found, or is damaged in some way, you may receive an error that says that the disk is not bootable, or is “not a system disk”. Everything said up to this point is generically true of the boot process for all Intel-based PCs, regardless of the operating system. From this point on, the details will be given for DOS. Some of these steps you may find are retained in Windows, but that is not our concern here. The DOS Boot Process When DOS was first used by IBM for its personal computers, the OS was called PC- DOS, and IBM gave certain names to the files that made them sound like IBM-
  • 2. specific files. But as soon as clone-makers (e.g. Compaq, Dell) starting making IBM- compatible clone computers, Microsoft released a clone version called MS-DOS, and renamed some of those files. Now MS-DOS is much more widely used than PC-DOS, and MS-DOS names are more common. For DOS systems, the MBR will point the computer to two hidden start-up files. The first of these files is IO.SYS (or for IBM computers, IBMBIO.COM). This must be the very first file (physically) on your boot disk or your disk will not boot. The second file is called MSDOS.SYS (or IBMDOS.COM for IBM computers). This must be the second file (physically) on the boot disk or it will not boot. This is why you cannot create a boot disk by simply copying thse files to blank floppy disk. They would be on the disk, but they would not be in the proper position for the boot process to find them. To create a “system disk”, you need to use a particular command that tells the computer to place these files in the precise position needed for booting to occur. The DOS Boot Sequence IO.SYS (or IBMBIO.COM) contains the interface between MS-DOS (or PC-DOS) and the I/O subsystem. This allows the OS to communicate with the basic peripherals and perform input and output tasks. MSDOS.SYS (or IBMDOS.COM) is the Kernel of the OS. It interacts with the hardware and helps process the various DOS functions. Both IO.SYS and MSDOS.SYS are hidden files, which means that ordinarily you would not be aware of them, and they would not appear in a directory listing. This is to protect the OS from someone mistakenly deleting these key files and rendering the computer unable to boot. The third file to be loaded is CONFIG.SYS. As the name implies, this file contains information that helps to configure your system. This is where you would install devices and drivers, for instance. In DOS it is common to have your mouse, sound card, and CD-ROM drive installed here, as well as certain memory management and other functions. If there is no CONFIG.SYS file present, a default version contained within MSDOS.SYS is loaded. The fourth file to be loaded, which is automatically added to the disk when you make a system disk, is COMMAND.COM. This file does not need to be in any particular physical location on the disk, but does need to be in the root directory. This file is a command interpreter, which means that it can interpret the commands you issue. Every OS has some type of command interpreter, though they may use a different name. In UNIX (and Linux), for instance, the command interpreter is generally called a shell. COMMAND.COM interprets all of the Internal Commands. We’ll discuss these later, but for the moment think of them as the most common commands that DOS uses. The fifth, and last file to be loaded is AUTOEXEC.BAT. This is a batch file, which means that it contains a series of commands that are executed whenever the file is run. This file is “automatically executed” when you boot, hence the name. If there is no AUTOEXEC.BAT file present, a default version is run. You can usually tell because if the default version is run you will be asked to enter the date and the time. After all of this, if it all works correctly, you will finally see the prompt, which will most likely look like one of these: A:> C:>
  • 3. DOS Wildcards; File Attributes For this lesson we are going to fill in a couple of concepts that we will need before we go further with directories. Wildcards Wildcards are characters that can be used to stand-in for unknown characters in file names. In card games, a wildcard is a card that can match up with any other cards. In DOS, wildcard characters can match up with any character that is allowable in a file name. There are two wildcards in DOS: * = matches up with any combination of allowable characters ? = matches up with any single allowable character Of course, since these two characters are used for wildcards, they are not allowable in filenames themselves. A filename like myfile?.txt would not be allowed. If you tried to create a file with this name you would get an error message “Bad file name.” But wildcards are very useful in any DOS command which uses a filename as an argument (which is most DOS commands, come to think of it.) The asterisk character, *, can stand in for any number of characters. Some examples of this command: c:>del *.doc This command would delete every file with the doc extension from the root directory of C: . So files like myfile.doc, testfile.doc, and 123.doc would all be deleted. C:>copy ab*.txt a: This command would copy every file that began with ab, and had an extension of txt, to the floppy drive A: . So files like abstract.txt, abalone.txt, and abba.txt would all be copied. C:temp>del *.* This is the fastest way to clean out a directory. This command will delete every file in the directory C:temp. The first apostrophe covers every filename, and the second one covers every extension. The question mark wildcard, ?, stands in for any single character. Some examples of this command: C:>del ?.doc This command would only delete files that had a single character filename and a doc extension from the root directory. So a file like
  • 4. a.doc or 1.doc is history, but a file like io.doc is perfectly safe, since it has two characters. C:>copy ab?.txt a: This command would copy any file with a three-letter name, of which the first two letters were ab, and with a txt extension, to the floppy drive A: . So files like abz.txt and ab2.txt would be copied.