MS DOS

 

 

 

Commands of MS DOS (Disk Operating System):

 

  1. DIR (directory) Command: This command is used for show the directory of computer.

 

Example:

C:\ dir

Commands used with dir (directory) command:

                          I.      Dir s*. *:  This type of command is used for display any file starting with “S”

                       II.      Dir ?????. *: This type of command is used for display any four character files.

                     III.      Dir *. *: This type of command is used for display any file with any extension.

                    IV.      Dir ali. *: This type of command is used for display a specified file with any extension.

  

Switches use with dir command:

 

a)      Using /p switch: By using this switch with dir we can view the files page wise.

 

Example:

C:\dir\p

 

b)      Using /w switch: By using this switch with dir we can view the files width wise.

 

Example:

C:\dir\w

 

c)      Using /w/p switch together: By using these switch we can view the files width wise and page wise.

 

Example:

C:\dir/w/p

 

d)      Using /as switch: By using this switch we an view all system files.

 

Example:

C:\dir/as

 

e)      Using /l switch: By using this switch we can view the files in lower case (small words).

 

Example:

C:\dir/l

 

f)        Using /ah switch: By using this switch we can view the hidden files.

 

Example:

C:\dir/ah

 

g)      Using /o switch: By using this switch we can view the files alphabetical order (sorting A-Z).

 

Example:

C:\dir/o

 

h)      Using /b switch: By using this switch we can display the files and folder name only (Date and time will not display).

 

Example:

C:\dir/b

 

i)        Using /t switch:

 

Example:

C:\dir/t

 

j)        Using /ad switch: by using this command we can display all subdirectory in the main directory or root directory.

 

Example:

C:\dir/ad

 

k)     Using /aa switch:

 

Example:

C:\dir/aa

 

  1.  CLS (clear screen) Command: This command is used for clear the screen of dos.

 

Example:

C:\ cls

  1. TIME Command: This command is used for show and change the time of PC.

 

 Example:

C:\time

  1. DATE Command: This command is used for show and changes the date of PC.

 

 

Example:

C:\date

  1. VER (Version) Command: This command is used for show the version of dos.

 

Example:

C:\ver

  1. VOL (volume) Command: This command is used for show the label of disk.

 

Example:

C:\vol

  1. LABEL Command: This command is used for change the label of disk.

 

Example:

C:\label

  1. MODE 40 Command: This command is used for increase the font in dos.

 

Example:

C:\ mode 40

  1. MODE 80 Command: This command is used for normalize the font in dos.

 

Example:

C:\mode 80

  1. PROMPIT $P Your Name $G Command: This command is used for chang the prompt name.

 

Example:

C:\prompit $p Ali $g

  1. PROMPIT $P$G Command: This command is used for normalize the prompt.

 

Example:

C:\prompt $p$g

  1. CHKDSK (check disk) Command: This command is used for show the detail of HDD or Floppy drive.

 

Example:

C:\chkdsk

  1. MEM (Memory) Command: This command is used for show the ram of PC.

 

Example:

C:\mem

  1. DOSKEY Command: This command is used to recall the used commands

 

Example:

C:\doskey

 

  1. REN (Rename) Command: This command is used for rename the existing file.

 

Example:

C:\ren jan.txt ali.txt

  1. MSD Command: This command is used for display the PC detail.

 

Example:

C:\msd

  1. MSAV Command: This command is used to run the Anti virus program.

 

Example:

C:\msav

  1. COPY Command: This command is used to copy the file from one place to another.

 

Example:

C:\copy ali.txt A:

  1. MOVE Command: This command is used to move the file from one place to another (this command is for move the file not copy it).

 

Example:

C:\move ali.txt A:

  1. DEL (DELETE): This command is used to delete the file.

 

Example:

C:\del jan.txt

  1. UNDELETE Command: This command is used for recover the deleted file.

 

Example:

C:\undelete jan.txt

  1. MD (make directory) Command: This command is used for make directory.

 

Example:

C:\md ali

  1. CD (change directory) Command: This command is used for active directory (enter in directory).

 

Example:

C:\my document\cd Ali

C:\my document\ali\

  1. CD.. Command:  This command is used for close the current directory (one step back from current directory).

 

Example:

C:\my document\ali\cd..

C:\mydocument\

  1. RD (Remove Directory) Command: This command is used for remove the existing directory.

 

Example:

C:\my document\rd Ali

C:\my document\

Note: Now check if directory is removed. Use cd command as follows

 

Example:

C:\my document\cd ali   (directory has removed so following thing display’s)

“Bad command or file name”

 

 

 

  1. EDIT Command: This command is used for create the file and also used for edit the existing files.

 

Example:

C:\edit ali.txt

  1. FORMAT Command: This command is used for format the HDD and floppy drive.

 

Example:

C:\format A:

a)      Using /S switch: This switch is used with format command. It purpose is to transfer the system files in the disk after formatting the disk.

 

Example:

C:\format A:/s

b)      Using /Q switch: This switch is used with format command. It purpose is to format the disk quickly. This switch can not be use first time of format.

  1. SYS (System files) Command: This command is used for transfer the system files from the boot able dist to hard disk.

 

Example:

A:\sys C:

  1. ATTRIB +H Command: This command is used for hide the file.

 

Example:

C:\attrib +h ali.txt

  1. ATTRIB –H Command: This command is used for UN hide the hide file.

 

Example:

C:\attrib –h ali.txt

  1. ATTRIB +H+R Command: This command is used for hide or protect from accidental delete.

 

Example:

C:\attrib +h+r ali.txt

  1. TYPE Command: This command is used for view the contents of file on prompt.

 

Example:

C:\type ali.txt

  1. BAT File: This file is used for store and run the different commands in batch file.

 

Example for create the batch file:

C:\edit ali.bat

To run the bat file simply writ the name of file and press enter to execute the commands store in batch file.

 

 

  1. HELP command: This command is used for get help of specified topic.

For example:

 

Example:

C:\help dir

(By writing above Example we can get help about directory).

  1. SCANDISK Command: This command is used for check disk error.

 

Example:

C:\scandisk

  1. FDISK Command: This command is used for partition the HDD.

 

Example:

A:\fdisk

 

 

Home

Hosted by www.Geocities.ws

1