Do You Know About MS-DOS’s Commands



Do You Know About MS-DOS’s Commands?


We know that computer operating system works only in the presence of it. MS-DOS is an operating system that runs the computer. When an operating system runs the computer, it provides command 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 DOS because these commands are stored in automatic memory as well as booting. 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: – 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

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 .. – 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): – This command can clear the screen.

Syntax-C: \> CLS

Ex.- C: \> CLS

COPY COMMAND: – 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

REN COMMAND (RENAME COMMAND): – This command is used to rename the file

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

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

TYPE COMMAND: – This command can be used to see the text of the file on screen.

Syntax-C: \> TYPE <DIR name>

Ex. – C: \> RD ABC.txt

DATE COMMAND: – By this command, we can see the current date (MM-DD-YY) format.

Syntax-C: \> date

Ex. – C: \> date

TIME COMMAND: – 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 current disk operating system in the system.

Syntax-C: \> Ver

Ex.- C: \> Ver

COPY CON COMMAND: -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 first file

^ Z (Ctrl Z) / F6

1 file copied

PATH COMMAND: – This command tells 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:

EXIT COMMAND: – This command is used to exit Dos prompt.

Syntax-C: \> Exit

Ex-C: \> Exit

PROMPT COMMAND: – 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 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. Switch / F is used to view the file.

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

Example: – c: \> TREE / F micro

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 path to the command data file. This command path works like a comma. With the help of this command, three main tasks are performed.

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 floppy should be identical. The floppy to be copied should be formatted after the copy should run 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 command is used to compare 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 capsi, if the size of both the discs is not enough then the right capsi

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. This command is used 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. The computer can be switched from 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’s command

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 Commad 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 Commad Das which runs after the comma. He gets recorded. And it can be seen later. And can use. F7 is used to see the record card. And using Alt F7 to clear the command history. With the help of UP and down Arrow, the cadad can be seen.

Syntax: – c: \> DOSKEY

Example: – C: \> DOSKEY

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: – The file and directory can be hidden from this attribute.
System: – With this attribute, change the file and directory to system file and directory.

Archive: – This attribute can be used to archive attribute in file and directory.
Note: – “” can set attribute from this and “-” remove 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 is used to format the disk. Care should be taken while driving this card. 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)? _

FDISK Command

Disk partitions are deleted from this command, and a new partition can be created. 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: \> Fdsisk


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 new file.

Syntax: – c: \> Sort File Name


Sort filename >> new file Name

Example: – c: \> Sort computer


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.