Ms-Dos: Microsoft Disk Operating System
Ms-Dos: Microsoft Disk Operating System
Switches
/P – displays one screen at a time
/W – displays in wide format
Internal Commands
/A attributes – H, -H, S, -S, D, -D, R, -R.
/O [:] Sort order – N, -N, E, -E, D, -D, S.
COPY CON – to create file
Syntax – COPY CON<file name>
MD or MK DIR – to create a directory
Syntax – MKDIR [drive:] path
MD [drive:] path
Internal command
TYPE – displays the contents of a text file
Syntax – TYPE [drive:] [path] file name
CD or CH DIR – displays name of the current
directory.
Syntax – CD [drive:] [path]
DEL
Syntax – DEL [drive:] [path] [file name]/p
RMDIR or RD- deletes or removes a directory.
Syntax – RMDIR [drive:] [path]
RD [drive:] [path]
Internal Command
REN – to rename a file.
Syntax – RENAME [drive:] [path] filename1
filename2
COPY
Syntax – Copy [/y:/-y] source file destination file
External Command
CHKDSK
Syntax – CHKDSK [drive:] [[path] filename] [/F]
[/V]
XCOPY
Syntax – Xcopy source destination [/y /-y]
TREE
Syntax – TREE [drive:] [path] [/f]
External Command
MOVE
Syntax – MOVE [/Y:/-Y] [drive:] [path] filename
ATTRIB- changes attributes
Syntax – ATTRIB [+R –R] [+A –A] [+S –S] [+H
-H] [[drive:][path] filename]
DOSKEY
Syntax - DOSKEY
External Command
DELTREE
Syntax – DELTREE [/Y] [drive:] path
FIND
Syntax – FIND [/V] [/C] [/N] [/I] “string”
[[drive:] [path] filename]
DISKCOPY
Syntax – DISKCOPY [drive1: [drive:2]] [/1] [/V]
External Command
PRINT
Syntax – PRINT [/D: device]
FORMAT
Syntax – FORMAT drive:
K Y O U !!!
TH AN