MS Dos
MS Dos
MS Dos
MS-DOS for Microsoft Disk Operating System is an operating system for x86-
based personal computers. It was the most commonly used member of the DOS
family of operating systems, and was the main operating system for IBM PC
compatible personal computers during the 1980s to the mid 1990s, until it was
gradually superseded by operating systems offering a graphical user interface
(GUI), in particular by various generations of the Microsoft Windows operating
system.
In the personal computer operating systems MS-DOS and PC DOS, a number of
standard system commands were provided for common tasks such as listing files
on a disk or moving files. Some commands were built-in to the command
interpreter; others existed as transient commands loaded into memory when
required. Over the several generations of MS-DOS, commands were added for the
additional functions of the operating system. In the current Microsoft Windows
operating system a text-mode command prompt window can still be used. Some
DOS commands carry out functions equivalent to those in a UNIX system but
always with differences in details of the function.
MS DOS Commands- Commands are the basic modes through which we can
communicate with the computer.
1. Internal Command
These are those Commands which are frequently used by the user.
The Internal Commands are stored in the COMMAND.COM File.
Example: COPY , MD , CLS , DIR, etc.
2. External Command
These are those Commands which are not frequently used by user.
These Commands are not part of COMMAND.COM File.
Example: PRINT COPY CON , MOVE , FORMAT, etc
Internal Commands
CLS
VOL
VER
PATH
DEL
TYPE
MD
REN
PROMPT
COPY
TIME
DATE
PAUSE
DIR
REN Command change the name of an already existing file to a new name.
Syntax:
REN [Drive:][Path]<OldFilename> <new filename>
Example:
D:\>REN E:file.txt myfile.txt
Will rename the file.txt to myfile.txt
Basic Command CD (Change Directory)
E.g. CD
CD.. : Changes the working directory to the parent directory (up one directory
level).
e.g. CD..
CD\: changes the working directory to the root (top level) directory of the
current drive.
e.g. CD\
Syntax:
CD [Drive:][Path] <Directory name>
Example:
D:\>CD Personal
Will change the directory to Personal
To move backward use
Basic Command MD (Make Directory)
Example:
D:\>MD myfolder
Will make a folder called myfolder in current directory.
Syntax:
RD [Drive:][Path] <Directory name>
Example:
D:\>RD myfolder
Will remove a folder called myfolder in current directory.
Basic Command Date
Example:
D:\>Date
Will display current date.
Example:
D:\>Time
Will display current Time.
FORMAT Command
ATTRIB Command
Syntax:
Example:
D:\>ATTRIB
OR
D:\>ATTRIB+R*.DOC
Will make the file with extension .doc read only
MOVE Command
MOVE will move the file or directory from one location to another.
Syntax:
MOVE [Path] [Drive:]<Source file> <[Drive:][Path]>
Example:
BREAK Command
PRINT Command
D:\>PRINT mynotes.txt
.
Autoexec.bat & Config.sys
The autoexec.bat and the config.sys were files created for MS-DOS and Windows
3.x to load device and operating system files to properly run. These files are
required for later revisions of MS-DOS and Windows 3.x to load. However, with
newer versions of Windows are no longer needed.
Remarking information.
Autoexec.bat layout.
Config.sys layout.
Technical support.