xternal commands.31

21
1 External commands http:// improvec.blogspot.in/

Upload: myrajendra

Post on 16-Apr-2017

603 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Xternal commands.31

1

External commands

http://improvec.blogspot.in/

Page 2: Xternal commands.31

http://improvec.blogspot.in/2

Objective

On completion of this period, you would be On completion of this period, you would be able to knowable to know

External commands-FORMAT, External commands-FORMAT, CHKDSK, SCANDISK etcCHKDSK, SCANDISK etc

Page 3: Xternal commands.31

http://improvec.blogspot.in/3

Recap

What are internal commands?

Internal commands are built – in commands

Examples: COPY, DEL, DIR, TYPE, CD, MD, RD, MODE, PATH, DATE, TIME, COPY CON etc

Page 4: Xternal commands.31

http://improvec.blogspot.in/4

Prerequisite

What is meant by commands

Instructions used to communicate with the computer system

Page 5: Xternal commands.31

http://improvec.blogspot.in/5

External Commands

External commands are included in a set of programs called utility programs that are stored on a disk

When these commands are used, DOS loads appropriate utility programs from disk and then executes them

As a result, external commands are executed much more slowly than internal commands

Page 6: Xternal commands.31

http://improvec.blogspot.in/6

External Commands (contd)

CHKSDK [d:] • This command is used for checking the

disk and reporting back the status of the system

• It checks for the memory and gives the detailed information about the memory consumed as well as free memory

Example :CHKDSK A:

Page 7: Xternal commands.31

http://improvec.blogspot.in/7

External Commands (contd)

DISKCOPY [d:] [d:]used to copy a diskette into another. This

makes the diskette in the first drive on the diskette in another drive

Example:

DISKCOPY A: B:

Page 8: Xternal commands.31

http://improvec.blogspot.in/8

External Commands (contd)

DISKCOMP [d:] [d:]

• Compare the contents of two diskettes on the drives specified

• If there is any difference in the contents of the disks, it gives the message

• Otherwise it asks to compare any other disks

Page 9: Xternal commands.31

http://improvec.blogspot.in/9

External Commands (contd)

TREE [d:] [/F]

This is used to display all the directories and subdirectories. /F displays all files if specified

Page 10: Xternal commands.31

http://improvec.blogspot.in/10

External Commands (contd)

PRINT: [d:] [path] filename

• This command is used for printing the contents of documents or files

• This command sends the document or the file specified to the printer for printing

ExampleC:\>PRINT D:\DOS\LETTER\MY LETTER.LET

Page 11: Xternal commands.31

http://improvec.blogspot.in/11

External Commands (contd)

FORMAT [d:] [\S] [\V]

• This command is used to prepare a fresh diskette to be used by the DOS for all its storage purposes

• It divides the disk into tracks and segments so that the data can be stored

Page 12: Xternal commands.31

http://improvec.blogspot.in/12

External Commands (contd)

• If we want to create a system diskette .i.e., a booted diskette which can be used to boot a system as it has the basic operating system in it, use ‘\S’ as option

• This \V to create a label

Page 13: Xternal commands.31

http://improvec.blogspot.in/13

External Commands (contd)

DEL TREE [d:] [path]

This command is used to delete the directory including all the sub directories and the files

This command has to be used carefully as it is dangerous such that it deletes all the files and subdirectories permanently

Page 14: Xternal commands.31

http://improvec.blogspot.in/14

External Commands (contd)

XCOPY [drive1:] pathname1 [drive2:] pathname2

It copies files and directories, including lower level directories

Where drive1 & pathname1 is the source file or directory, drive2 & pathname2 is the target file or directory

It is similar to copy command but it also copies all the subdirectories including empty directories

Page 15: Xternal commands.31

http://improvec.blogspot.in/15

External Commands (contd)

Example C>XCOPY A: /S

Result The above command is used to copy all

files and subdirectories on the disk in drive A to the disk in the drive C

Page 16: Xternal commands.31

http://improvec.blogspot.in/16

External Commands (contd)

ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [drive:] [path] [filename] [/S [/D]]It displays or changes file attributes

+ Sets an attribute- Clears an attributeR Read-only file attributeA Archive file attribute

Page 17: Xternal commands.31

http://improvec.blogspot.in/17

External Commands (contd)

S System file attributeH Hidden file attribute

[drive:] [path] [filename] It specifies a file for attrib to process/S Processes matching files in the current folder and all subfolders/D Processes folders as well

Page 18: Xternal commands.31

http://improvec.blogspot.in/18

Summary

In this class, you have learnt about

External commands – FORMAT, CHKDSK, SCANDISK, XCOPY, ATTRIB, DISKCOPY, PRINT, TREE, DELTREE etc

Page 19: Xternal commands.31

http://improvec.blogspot.in/19

Frequently Asked Questions

1. List any four DOS external commands

2. What is DOS external command?

3. Explain any four external commands in DOS.

Page 20: Xternal commands.31

http://improvec.blogspot.in/20

Quiz

C>XCOPY A: /S - This command is used to copy all files and subdirectories on the disk in

a. drive A to the disk in the drive C.b. drive C to the disk in the drive A.

Answer: a

Page 21: Xternal commands.31

http://improvec.blogspot.in/21

Quiz

The command used to copy a diskette into another

a. DISKCOPYb. XCOPY

Answer: a

21