MS-DOS Commands (Internal and External ) How to use it.

Hello, friends have you ever heard of Operating system. Do you know what is it? And what is MS-DOS and how it runs any system? If you don’t know anything about it then I am going to share with you about MS-DOS and it commands.

If you have studied in school then definitely you would have heard about MS-DOS. Whenever someone goes for learning about the computer, he has to start with MS-DOS only. By the way, MS-DOS is an operating system. And we already know that the computer operating system works only in the presence of MS-DOS only.

What is MS-DOS And Why is it necessary.

MS-DOS is an operating system that runs the computer. When an operating system runs the computer, it provides commands for the user through the command interpreter to add a connection between the user and the hardware. In MS-DOS, this facility is available through two types of commands which are as follows –

  • Internal command: – These commands are always present with MS-DOS because these commands are stored in automatic memory as well as boots. This is also compiled in the COM program FILE. Therefore these commands are always available as long as there are examples of some internal commands that can be executed -MD, DIR, CD, Copy, Type, Rename etc.
  • External Command: – External commands are such a small program that is stored on Floppy Disk or Hard Disk and can be executed when required, it is stored in the store and executed. External commands that have their own file, which is executed by executing the command. Examples of External Commands are Format, Print, Backup, Help, Disk, Dos key, Tree, etc.

Internal command: –

DIR COMMAND: –  In MS-DOS, This command displays the list of files and subdirectories in a directory.

Syntax-C: \ Dir

If you want to see a list of files in a particular directory, then give the name of the directory with the dir.

Syntax-C: \> Dir <Directory name>

Ex. – C: \> Dir abc

MD COMMAND (Make Directory): –

This command is used to create a new directory in MS-DOS.

Syntax-C: \> MD <Directory name>

Ex. – C: \> MD ABC

CD COMMAND (Change Directory): –

This command is used to change the directory

Syntax-C: \> CD <DIR name>

Ex. – C: \> CD ABC

CD .. Command

This command is used to get out of the directory

Syntax-C: \> <Dir name> <command>

Ex. – C: \> ABC> CD …

C: \>

RD COMMAND (Remove Directory): –

This command is used to remove the previously created directory in the disk.

Syntax-C: \> RD <DIR name>

Ex. – C: \> RD ABC

CLS (Clear Screen Command):

In MS-DOS, This command can clear the screen.

Syntax-C: \> CLS

Ex.- C: \> CLS


Through this command, we can create any file that is a duplicate file.

Syntax 1- C: \> Copy <File Name> <New Name>

Syntax 2- C: \> Copy <Path \ File Name> <Target Drive>


Ex.- C: \> COPY DELHI D:

DEL COMMAND (Delete Command): –

This command is used to delete the file from disk.

Syntax-C: \> Del <DIR name>

Ex. – C: \> Del ABC.txt


This command is used to rename the file

Syntax-C: \> REN <Old File Name> <New File Name>

Ex. – C: \> REN ABC.txt XYZ.txt


This command can be used to see the text of the file on screen.

Syntax-C: \> TYPE <DIR name>

Ex. – C: \> RD ABC.txt


In MS-DOS By this command, we can see the current date (MM-DD-YY) format.

Syntax-C: \> date

Ex. – C: \> date


Through this command, we can see the current time.

Syntax-C: \> time

Ex. – C: \> time

VER (VERSION): – Through this command, we can see the version of the current disk operating system in the system.

Syntax-C: \> Ver

Ex.- C: \> Ver


The command is used to create the file.

Saving file: file is saved by CTRL Z.

Syntax-C: \> Copy Con <File Name>

Ex.- C: \> Copy Con ABC.txt

Hello this is the first file

^ Z (Ctrl Z) / F6

1 file copied


This command tells MS-DOS what directory it should do to find out any programs.

Syntax-C: \> PATH

Ex-C: \> PATH

Changing the drive: – To change the name of any drive, that drive is entered with name colon

Syntax-C: \> <Drive name>

Ex. – C: \> A:


This command is used to exit Dos prompt.

Syntax-C: \> Exit

Ex-C: \> Exit


Through this command, we can change the prompt.

Syntax-C: \> prompt_name

Ex. – C: \> prompt_paragon

External command

External command They are cadams. Those who need special files to run The primary name of that file is the same name. The name is of cadmd. But the secondary name (secondary name) can be EXE, COM, BAT.

EXAMPLE: -chkdsk, label, edit, diskcopy, append

 LABEL command

With the help of this command, you can see the drive’s label and serial number. And also can change.

Size of the label can be 11 characters in Windows XP and Windows 7 can have 32 characters. And also delete the level from it.

Syntax: – c: \> LABEL <Drive Name>

Example: – c: \> LABEL A:

Tree command

With this help, you can see the directory and the file in the tree format.  is use Switch / Fto view the file.

Syntax: – c: \> TREE / [Switch] [path]

Example: – c: \> TREE / F micro

Read this also:

CHKDSK Command

CHKDSK’s full name is Check Disk, Secondary memory is checked with it.

Syntax: – c: \> CHKDSK <Drive Name>

Example: – c: \> CHKDSK D: \

Append Command

It provides a path to the command data file. This command path works like a comma. With the help of this command, three main we perform 3 main tasks.

You can see the path of the data file. Break the path. You can set the path.

See the path

c: \> append

to break the path

c: \> Append;

No Path

Path Setting

Syntax: – Append = data file address; other data file address

c: \> Append = c: \ micro; d: \ Mukesh

DiskCopy Command

This command is used to copy the floppy disk. That is, most of the floppy gets spoiled again and again. Therefore it is important to have multiple floppy copies.

Note: The size of both floppies should be identical. The floppy to be copied should be formatted after the copy should run the diskcomp command

Syntax: – c: \> Diskcopy <First Drive Name> <Second Drive Name>

Example: – c: \> DiskCopy A: A:

Enter Source Disk in drive A:

And press any key

Enter target Disk in Drive A:

And press any key

DiskComp Command

This MS-DOS command compares two floppy disks. This command is used after the diskcopy. It is checked that no file is missing while copying. If both the size is equal then the correct caps, if the size of both the discs is not enough then the right caps

It has not happened.

Syntax: – c: \> DiskComp <First Drive Name> <Second Drive Name>

Example: – c: \> diskcomp A: A:

SYS Command

This is the full name system of the command. You can use this command to create a bootable disk. This makes copies of the bootable file disk. After the process is completed, a system transferred message appears that indicates that the disk has become bootable. Switched The computer can befrom the bootable disk.

Syntax: – C: \> SYS A:

Example: – C: \> SYS A:

Help Command

With the help of this command, you can see the help of MS-DOS commands

Syntax: – c: \> HELP <command Name>


c: \> Command Name /?

Example: – C: \> dir /?

Print command

With the help of this command, you can remove the printout of one or more files simultaneously. This is available in the post version of Command Dash version 2.0

Syntax: – Print <file Name>

Example: – C: \> Print micro.txt

DOSKEY Command

This cardamom is like a camera. It starts with version 5.0 of Command Das which runs after the comma. It records everything. And you can see it later. And can use. Use The file and directory which you can hide it from to see the record card. And using Alt F7 to clear the command history. With the help of UP and down Arrow, We can see the cadad .

Syntax: – c: \> DOSKEY

Example: – C: \> DOSKEY

See this also:

Attrib Command

With the help of this command, you can see the attributes of the file and folder. And also can change.

There are four types of attributes in the file and folder.

Read: – Only the file and directory can read from this attribute.
Hidden: – Use this attribute of MS-DOS to hide the attribute.
System: – With this attribute, change the file and directory to system file and directory.

Archive: – To archive attribute in file and directory you can use archive command.
Note: – “” can set attribute from this and “-” remove the attribute from this.


Type of Attribute to Set
To remove


Read R -R
Hidden H-H
Archive A-A
System S -S
Backup Command

With this command, any directory and file can be backed up in any other disc, it is necessary to take a backpack. Because the computer-generated file can also be damaged by many cases, if the file is backed up, then it should be recovered. Could. To retrieve the file, use the restore command.

Syntax: – c: \> Backup <source address> <destination disk or address> 

Edit [path \ file name or new file name]

Example: – c: \> backup c: \ micro A: \

Edit command

You can improve the file already created by this command and can also create new file. This is an editor of DAS. There is a menu system. By which we can fulfill our work more easily. You can also use the mouse in it. To exit Editor, the file uses all the coded exit of the menu.

Syntax: – c:\micro>edit student

Example: – c:\micro>edit student

Move Command

With the help of this command, you can move any file from one place to another. After moving, 1 file moved message arrives.

Syntax: – move <Source address> File Name> <Destination Address> 

Example: -move d: \ computer e: \

FORMAT Command

This command helps us to format the disk. When you are going to use his ms-dos commands you have to be extra careful for this. You can also use its switch with it. Which can formatting differently in different ways. This command is used when the data of the whole disc has to be removed together. / Q This switch is used to fast format.

Syntax: – c: \> FORMAT / [SWITCH] Drive Name:

Example: – c: \> FORMAT / Q d:

Warning all data on non-removable disk

Drive d: will be Lost!

Proceed with format (Y / N)? _Y

Volume label (Enter for none)? _

See this also:

FDISK Command

This command deletes the partition, and the we can create new partition. This command should be very careful and carefully followed.

There are three types of partition in the disk.
Primary partition
Extend partition
Logical partition
Delete Partition: – To delete partitions, first delete the logical partitions. After that, delete the extended partition. And finally, delete the primary partition.

Logical> Extend Partition> primary Partition

Creating Partition: – Creating primary partition first creates a partition. After this, make the expanded partition. Finally, create a logical partition.

Primary> extend> logical

C: \> Fdisk


1.Create Partition

2.Delete Partition

3.Display Partition

Choose any

Sort command

With the help of this, you can sort the file mater on the basis of the column. And sorted ones, and save in a new file.

Syntax: – c: \> Sort File Name


Sort filename >> new fileName

Example: – c: \> Sort computer

So are these commands are helpful for you. If you have any suggestions then feel free to contact us anytime.

And if you like the post please share it as much as you can.

MS-DOS Commands (Internal and External ) How to use it.
Rate this post

Leave a Reply

%d bloggers like this: