DOS Commands

Federal Board | Past Papers | Notes | A-Level

Back to: Computer Science Class-9 Notes

(1) Write down the procedure to change a directory?
(2) Write down the purpose of the DOS commands: (a) COPY (b) DIR/w, and (c) DISKCOPY
(3) Write the purpose and suitable example any two of the DOS commands: (a) REM (b) DELTREE, and (c) XCOPY
(4) What is a Parameter?

(1) Changing Directories
To move to a different directory on the current drive, use CD or CHDIR ( change directory) command. For example the following command changes the \HOME\DRAWING to \SCHOOL\WORK\ART:
CD\SCHOOL\WORK\ART

(2) DOS Commands

(a) COPY
Allows you to copy one or more files to an alternate location.

(b) DIR/w
The DIR command allows you to see the available files and directories in the current directory. The DIR command also shows the last modification date and time, as well as the file size.

(c) DISKCOPY
The DISKCOPY utility allows a user to copy the complete contents of a diskette to another diskette.

(3) DOS Commands

(a) REM
The REM command lets you place a remark or comment in a batch file. For example REM This is a comment line.

(b) DELTREE 
Deletes (erases) a directory including all files and subdirectories that are in it. For example DELTREE c:\letters

(c) XCOPY
Copies files and directories , including subdirectories. For example, xcopy “c:\documents and settings\hope” /e

(4) Parameter
A parameter is a special kind of variable in computer programming language that is used to pass information between functions or procedures. The actual information passed is called an argument.