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

External Commands:

1. MOVE:
Allows user to move the files from one location to another.
Syntax: MOVE [Drive][path]source files [Drive][path]
Example: C:\>move C:\documents\*.doc D:\myfiles\

2. XCOPY:
Used to copy files and subdirectories from one location to another.
Syntax: XCOPY [drive][path][source files[/s][/e] [drive][path]
Example: C:\>xcopy C:\test\*.* /s D:\mytest

3. TREE:
Used to display the directory structure of a drive of path.
Syntax: TREE [drive][path][/f]
Example: TREE E:\classxi/f

4. DELTREE:
Used to remove/delete directories and files.
Syntax: DELTREE [drive][path]directory name
Example: DELTREE E:\classxi

5. LABEL:
Used to display and change disk drive volume label/name.
Syntax: LABEL [drive]
Example: E:\>LABEL ram

6. FORMAT:
Used to remove all contents of disk and creates new sectors and tracks.
Syntax: FORMAT [drive][/s/q]
Example: C:\>FORMAT G:

7. ATTRIB:
Allows user to change the attributes of files.
Syntax: ATTRIB [+/-] [H/R/S] [FILENAME]
Example: C:\>ATTRIB -h -r test.txt

8. CHKDSK/SCANDISK:
Checks the drives for errors.
Syntax: CHKDSK [drive]
Example: CHKDSK D:

9. DOSKEY:
Renames DOS commands.
Syntax: DOSKEY [new command] = [DOS command]
Example: C:\DOSKEY list = dir

10.HELP /?
Used to get any types of help about DOS command.
Syntax: DOS command/?
Example: dir/?

11.FC:
Compares two set of files and displays the difference between two files.
Syntax: FC [filename1] [filename2]
Example: FC about.txt contact.txt

12.START
Starts specific programs or commands.
Syntax: START [program]
Example: START winword

13.IPCONFIG:
Displays network driver information with ip address, mac address, gateway etc.
Syntax: IPCONFIG [/options]
Example: IPCONFIG /ALL

14.SHUTDOWN:
Shuts down or restarts the computer with different arguments.
Syntax: SHUTDOWN [/options]
Example: SHUTDOWN /s

You might also like