Wednesday, March 30, 2016

External DOS Commands:


Those commands which are not included in COMMANDCOM file and which reside on the system disk are the external commands. The system disk must be in the same drive to work with external DOS commands.
Sn.
Command
Switch
Function
Syntax
1.
CHKDSK


To check drive, directories, files etc.
Drive: Path\CHKDSK
/F
Fix errors
C:CHKDSK/F
/V
Display name and path.
C:CHKDSK/V
2.
SCANDISK

To check disk status and fix errors.
Drive: Path\SCANDISK
C:SCANDISK
3.
LABEL

Change Volume label.
Drive: LABEL {Drive}{label}
C:LABEL A: ram
4.
FORMAT

To Format Disk.
Drive: FORMAT {Drive} {Switch}
C:FORMAT A:
/V
Specify volume label.
C:FORMAT A: /V
/Q
Quick format
C:FORMAT A: /Q
/S
System Transfer
C:FORMAT A: /S
5.
DISKCOPY

To copy disks.
Drive: DISKCOY {Source drive} {Target drive}
6.
SYS

To transfer system files.
Drive: SYS {drive}
C:SYS A:
7.
TREE

To display directories and files.
Drive: TREE
C:TREE
8.
XCOPY

To copy directories with sub directories from another location.
Drive: XCOPY {Drive/Path}
C:XCOPY  A:ram
9.
MORE

To view files page by page.
Drive: {Drive: | more}
C:Dir |MORE
10.
DELTREE

To delete directory with contents.
Drive: DELTREE {Directory}
C: DELTREE ram
11.
DISKCOMP

To compare disk.
Drive: DISKCOMP {Disk1} {Disk2}
C: DISKCOMP A: A:
12.
EDIT

To open Edit screen.
Drive: EDIT {filename}
C: EDIT ram
13.
ATTRIB

To change attribute of the file.
Drive: ATTRIB {switch} {filename}

+A
Apply Archive
C: ATTRIB +A ram
-A
Remove Archive
C: ATTRIB -A ram
+R
Apply Read only
C: ATTRIB +R ram
-R
Remove Read only
C: ATTRIB –R ram
+H
Apply Hidden
C: ATTRIB +H ram
-H
Remove Hidden
C: ATTRIB –H ram
+S
Apply System
C: ATTRIB +S ram
-S
Remove System
C: ATTRIB –S ram



No comments:

Post a Comment