MS-DOS Commands

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

MOHAMMED IRFAN

PH: 00971-55-9102989,
DUBAI, U.A.E.

MS-DOS COMMANDS
= = = = = = = = = = = =

1) INTERNAL COMMANDS
- - - - - - - - - - - - - - - - - - - - - - - -

1) CLS
TO CLEAR THE SCREEN.

2) DIR
TO DISPLAY THE LIST OF FILES AND DIRECTORIES.

3) COPY CON <FILE NAME>


TO MAKE A FILE.

4) CONTROL + Z (OR) F6
TO SAVE A FILE

5) TYPE <FILE NAME>


TO READ THE CONTENTS OF A FILE.

6) REN <OLD-NAME> <NEW-NAME>


TO CHANGE THE NAME OF A FILE.

7) VOL
TO SEE THE VOLUME LABEL OF THE DISK

8) VER
TO SEE THE DOS VERSION.

9) DEL <FILE NAME>


TO DELETE A FILE.

10) DATE
TO SEE THE CURRENT DATE.

11) TIME
TO SEE THE CURRENT TIME.

12) DIR/P
TO DISPLAY THE LIST OF FILES AND DIRECTORIES PAGE WISE.

13) DIR/W
TO DISPLAY THE LIST OF FILES AND DIRECTORIES
WIDTH WISE (IN COLUMNS).

14) DIR/S/P
TO DISPLAY THE LIST OF FILES AND DIRECTORIES
INCLUDING SUBDIRECTORIES.
15) DIR/AD
TO DISPLAY ONLY DIRECTORIES.

16) DIR/O:N
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
ASCENDING ORDER OF NAMES.

17) DIR/O:-N
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
DESCENDING ORDER OF NAMES.

18) DIR/O:E
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
ASCENDING ORDER OF EXTENSION OF FILES.

19) DIR/O:-E
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
DESCENDING ORDER OF EXTENSION OF FILES.

20) DIR/O:S
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
ASCENDING ORDER OF SIZE.

21) DIR/O:-S
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
fDESCENDING ORDER OF SIZE.

22) DIR/O:D
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
ASCENDING ORDER OF DATE.

23) DIR/O:-D
TO DISPLAY THE LIST OF FILES AND DIRECTORIES IN THE
DESCENDING ORDER OF DATE.

24) COPY <SOURCE-FILE> <TARGET-FILE>


TO COPY A FILE FROM ONE PLACE TO ANOTHER.

25) CONTROL + C
TO STOP A DOS COMMAND.

26) MD <DIRECTORY NAME>


TO MAKE A DIRECTORY.

27) CD <DIRECTORY NAME>


TO ENTER INTO A DIRECTORY.

28) CD.. (0R) CD\


TO EXIT FROM A DIRECTORY.

29) RD <DIRECTORY NAME>


TO REMOVE A DIRECTORY.

30) PROMPT
TO CHANGE THE PROMPT

$P PROMPT ( C:\ )
$G GREATER THAN SIGN ( > )
$L LESS THAN SIGN ( < )
$Q EQUAL TO SIGN ( = )
$B BAR ( | )
$T CURRENT TIME
$D CURRENT DATE
$V VERSION NUMBER
$_ NEW LINE

2) EXTERNAL COMMANDS
-----------------------------------------

31) MOVE <SOURCE FILE> <TARGET FILE>


TO MOVE A FILE FROM ONE PLACE TO ANOTHER PLACE.

32) MORE <FILE-NAME>


TO SEE THE CONTENTS OF A FILE PAGE WISE.

33) CHKDSK <DRIVE NAME>


TO SEE THE STATUS OF THE DISK.

34) SCANDISK <DRIVE NAME>


TO CHECK AND FIX THE ERRORS OF THE DISK.

35) XCOPY <SOURCE DIRECTORY> <TARGET DIRECTORY>


TO COPY ALL FILES AND SUBDIRECTORIES OF THE DIRECTORY.

36) LABEL <DRIVE NAME>


TO SEE AND CHANGE THE VOLUME LABEL OF THE DISK.

37) MODE 40 (OR) 80


TO CHANGE THE SIZE OF THE TEXT ON SCREEN.

38) EDIT
TO EDIT A FILE USING FULL SCREEN EDITOR.

39) SORT
TO SORT A FILE ACCORDING TO ANY CHARACTER POSITION.

40) ATTRIB <+R / -R> OR <+H / -H>


TO MAKE A FILE READ ONLY OR HIDDEN.

41) DELTREE <DIRECTORY NAME>


TO DELETE THE ENTIRE DIRECTORY WITH ALL ITS SUBDIRECTORIES.

42) MEM
TO SEE THE MEMORY OF THE SYSTEM.

43) DOSKEY
TO EDIT AND RECALL COMMAND LINES USING ARROW KEYS.

44) FORMAT A:
TO MAKE A NEW FLOPPY READY FOR WRITING BY THE COMPUTER.

45) DISKCOPY A: B:
TO MAKE A DUPLICATE COPY OF THE DISK.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy