| MS-DOS System Basics
MS/DOS was originally used by the first IBM PC. Over the years, it evolved into the current version 7 packaged with Windows 95/98. For many years MS/DOS was the primary operating system for Intel based microprocessors.
DOS and BIOS controlled the entire PC. It resided in RAM memory, along with the various device drivers. DOS and BIOS operate hand-in-hand in controlling the PC. In this discussion, I will try to keep the discussion at the newest or highest version of DOS (MS-DOS 6.22) with which I am familiar. When you first turn on the computer (called "booting" the computer), MS-DOS is loaded or started. After this boot up you usually see a blank screen with a small prompt (usually "C:\>"). To people who have not used computers before, this prompt can be intimidating--it offers no clue on what to do next. What's behind that blank screen? The answer of course is a Disk Operating System (DOS) is in control your computer. This operating system provides a way to communicate with your computer. It also controls the organization of files and programs on your hard and floppy disks. In this section we will explore disk organization and some of the basic commands used to communicate with the MS/DOS operating system. Hard Disk
Organization When you copy or create a file or install a program on the hard disk in a MS-DOS system, a File Allocation Table (FAT) is created on the hard disk. This FAT contains a listing of what is stored on your disk. In the directory entry for each file, DOS records:
Directory Organization
Think about how you store letters in your office. In your office, you may have a filing cabinet. In that filing cabinet, you probably have folders that pertain to different projects, employees, organizations, or some other grouping--maybe logical, maybe not. Within each folder you have articles, letters, diagrams, reports--anything that you want to save. This storage method carries over to Microsoft's MS-DOS and Windows 95/98 Disk Operating Systems (DOS). With Microsoft's DOS, a disk is like a filing cabinet. Within that disk, you have directories or areas set aside for certain files such as memos, articles, or diagrams. The same type items that you store in a folder are stored in electronic form in a file. That file is then stored in a directory. Root Directory and the Path The main directory is called the root directory. All other directories are branches of this directory, much like the roots of a tree. Directories can contain files, programs, or other directories. The root directory is designated by a backslash (\). To get to a particular file, you must trace the path from the root directory to the directory that the file is located in. The path is the list of directories, starting with the root. Each directory name is separated by a backslash (\). For example, the path [C:>\wp\reports] gives you access to the directories as follows:
Note: The paths for each of these directories would look like the following:
Managing Directories and Files In earlier versions of MS/DOS, when the command prompt was displayed in its standard form, (C:\>), it told you what the default drive is, but but not the current directory. Modern versions of MS/DOS shipped with Windows 95/98 will indicate both the drive and directory you are in. If you are working with an older version of MS/DOS and want to change the form of the prompt so it does tell you what the current directory is, use the PROMPT command as follows:
C:\>Now if you changed the current directory to the DOS directory, the prompt would look like this:C:\DOS>The enhanced form of the prompt stays in effect until you turn your PC off. A prompt that tells the current directory makes it easier to use the other DOS commands.
File Names Whenever you save a new file on a hard disk or a diskette, whether you use DOS or an application program, you need to be able to create a valid file name. A file name is separated into two parts that are separated by a period. The part that comes before the period is required. The part after the period is optional and is called the extension. The MS/DOS system uses the 8.3
file naming convention. Each file must have a unique or different
name. An entire file name is made up of the file name (up to eight
characters) and the extension (optional three characters).
The file name and extension are separated by a period. You cannot use
these characters in a file name:
Valid File Names: As and example: [Report.doc] is a valid file name. [Report] is the file name, and [doc] is the extension. The file name should tell you what the file contains; the extension often tells you the type of file. Some programs such as Lotus Freelance and Lotus 123, assign an extension automatically. As an example:
Invalid File Names: [MY NOTES] is not a valid file name because a file name cannot contain spaces.(except in Windows 95/98) If you want to include a space in a file name, however, you can use the underline character instead [MY_NOTES]. [Basicdosclass.DOC] also is not a valid file name because it contains too many characters.Wild Cards When you want to work with a group of files, you can use wild cards. There are two types of wild cards: an asterisk and a question mark. The Asterisk
This file spec matches all files; that is, the file can have any root
name and any extension. (A file spec is a combination of the path, file
name, and extension.)
Remember that each ? wild card represents one alphabetical character.
Don't try to change the contents of COMMAND.COM. That's all there is to it! That is why the root directory has no dot-dot file; the root has no
parent. You can use the dot-dot file as a shortcut to change to the parent
of the subdirectory on which you are currently logged.
More information
on Basic MS-Dos Commands.
|