An Overview of MS-DOS
An Overview of MS-DOS
An operating system consists of one or more programs that control the allocation
and usage of hardware resources (e.g. memory, CPU time, disk space, peripheral
devices) and function as an interface between the user, application programs, and the
hardware.
Microsoft Corp. MS-DOS 1.0 came out in 1981. Since then there have been a number of
upgraded versions, the last being Version 6 Release 22 (v6.22). Versions are upward
compatible.
Unlike GUI (Graphical User Interface) Operating Systems like Windows XP, MS-DOS has
a command-line interface. That is commands are typed at the so-called MS-DOS prompt
C:\DOS>
where C: identifies the default drive and\DOS identifies the default path. The top level
directory, identified by a single \ as in C:\> is called the root directory.
All files under MS-DOS are specified by a four part naming convention. MS-DOS File
Manipulation commands identify files in this manner.
drive:\path\filename.ext
where
drive:
is a single letter identifying the device where the file is found (e.g. c:)
\path \
is the hierarchy of directories (folders) where the file is found. Directories are
separated by \(back-slash character)
filename
is the file name of from 1 to 8 letters and or digits. Blanks and certain special
characters (e.g. \ or .) are not allowed.
.ext
is the file type or extension of up to 3 non-blank characters. File types or
extensions are used to identify the type of file where certain naming conventions
are used. For example, .exe identifies an executable file, .txt indentifies an ASCII
text file, and .doc and .wpd identifies MS-DOS Word and WordPerfect documents.
Remember all directory names and file names are limited to 8 characters (digits, or
letters) although MS-DOS running under Windows NT allows longer names. Embedded
blanks are NOT allowed and in general special characters are not allowed.
Example c:\dos\autoexec.bat
Commands that reference files may either give the full file specification
(drive:\path\filename.ext) or a partial file specification where the default drive and
pathname values given by the MS-DOS prompt are used. The rule is when the drive
name and/or path is not given, the default values are used.
In the commands given below, we adopt the convention that anything enclosed in
square brackets, [ ], is optional. For example, [x:\path \] refers to an optional device
and/or path.
The following commands can be used to create and remove subdirectories and set the
default drive and directory. Again anything in square brackets [ ] is optional.
• To change the default drive, at the MS-DOS prompt type the drive letter followed
by a colon. For example, to make a: the default drive
C:\> a:
• To change the default path, use chdir or cd, the change directory command. For
example, to make FILES, a subdirectory of DOS the default use
C:\DOS> cd \
• To make (i.e. create) a directory use mkdir or md, the make directory command.
That is
mkdir [\path\]directory
md [\path\]directory
rd [\path\]directory
tree [drive:/path/]
To display execute an MS-DOS display command in conjunction with more use c:\>
cmd | more. For example
Miscellaneous MS-DOS
• To execute any application or run executable file (any file with an .exe or .com
extension), simply type the file name at the MS-DOS prompt. This is like the run
command in Windows.
• EDIT is a full-screen text editor that comes with MS-DOS. You can use EDIT to
create and edit text files. (Note MS-DOS EDIT is somewhat similar to Note Pad in
Windows).
• Use the Help command to display information about all MS-DOS commands.
C:\> help
• A single period "." and a double period ".." refer to the current directory and the
parent directory respectively. They can be used to specify relative paths. For
example
C:\DOS\FILES> chdir ..
C:\DOS>