MS DOS

MS-DOS


MS DOS commands

MS DOS stands for Microsoft Disk Operating System,is a non-graphical command line operating system.It is a single-user, single-tasking computer operating system that uses a command line interface.

MS DOS

MS DOS commands are of Two Types :

Internal Commands
External  Commands

1. Internal Commands
Command which stored in system memory and get loaded from command.com or cmd.exe are known as Internal command.This command does not need ant external file it is build in DOS shell.

Below are some of Internal command,

DIR
Get the list of files in current folder or directory
CLS
Clears current working screen of MS DOS)
DATE
View or change current date of system
TIME
View or change current time of system
REN or RENAME
Rename a file
COPY
Copy a file
VER
Get the current DOS version
MD
Create directory or folder
RD
Remove directory or folder if empty

Note: All internal commands are still supported in Windows Command Prompt.

2. External Commands

Command which is not included in command.com are known as External command.
External command request to run a program which is in separate file these file called as com or exe file.

Here are some MS DOS’s external commands.

DELTREE
Remove folder including all sub folders and files
LABEL
View or change disk’s label name
FORMAT
Format the Hard Disk or Floppy Disk
CHKDSK
Run disk check on Hard Disk or Floppy Disk

External commands
    Command.com
         -> cd
         -> copy
        -> dir

Internal command
   defrag.exe
   edit.com
   fdisk.exe
   scandisk.exe

For more information on commands, type the command with a “/?” following it.
Ignore the quotation marks “” in my examples.

Reserved symbols: ? / * & ; \ : % @ . ( ) < ># ! = |

Example :
copy base.doc c:\impfiles\
In this example we are copying base.doc file in D drive in folder name impfiles

ren base.doc second.doc
This command will rename file base.doc into second.doc

*.*   wild card…means include all files with all extention
? wild card for one letter

dir  *.jpg
In this next example, the dir command would only list files that end with .jpg file extension.

dir f?les
List files in MS-DOS using the dir command that contain f, les, and any other character in-between. For example files,fales,fdles etc would all be matched.

Viewing Directory examples :
dir /o = view directory in alphabetical order
dir /p = view directory by one page at a time
dir /w = view directory in wide format



You May Also Enjoy Reading This …