Disk Operating System

About DOS  Refers to operating system software used in most computers that provides management of storage devices and the information on them. MS-DOS .  IBM-DOS or PC-DOS.

The flashing underscore next to the command prompt is called the cursor. .Command prompt This is called the command prompt or DOS prompt.

. The Directories 1. To go back to root directory: CD\ Ex. To go back one subdirectory at a time: CD. Ex. 2.. C:\ >dir1\subdir1\CD.Basic DOS commands A. C:\ >dir1\subdir1\CD\ .

C:\ >CD Music 4. C:\ >D: . The Directories 3. To change root directory: <rootdir name>: Ex. To go to a subdirectory at a time: CD <subdir name> Ex.Basic DOS commands A.

C:\ >DIR/p .Basic DOS commands A. C:\ >DIR/? Ex. To list the files in a directory with extended function: DIR/? Ex. C:\ >DIR 6. To list the files in a directory: DIR Ex. The Directories 5.

Basic DOS commands A. C:\ >DIR D:Pictures . To list the files in another directory with subdirectory: DIR D:<subdir name> Ex. To list the files in another directory: DIR D: Ex. The Directories 7. C:\ >DIR D: 8.

C:\ >MD John 10.Basic DOS commands A. To create subdirectory: MD <subdir name> Ex. The Directories 9. C:\ >RD John . To remove subdirectory: RD <subdir name> Ex.

Working with the disk Reminder: TAKE EXTRA PRECAUTION IN EXECUTING THESE COMMANDS! 1. C:\ >DISKCOPY D: C: . To format a disk: FORMAT A: Ex. To copy content of A: to B: DISKCOPY A: B: Ex. C:\ >FORMAT A: 2.Basic DOS commands B.

C:\ >EDIT . To create a file: EDIT Ex. Managing Files 1.Basic DOS commands C.

To delete a file: DEL <file name> Ex.txt Joe.txt 3.Basic DOS commands C. To rename a file or subdirectory: REN <oldname> <newname> Ex.txt . Managing Files 2. C:\ >DEL Joe. C:\ >REN John.

Managing Files 4. Ex. C:\ >XCOPY Pictures D: C:\ >XCOPY Pictures D:Pictures C:\ >XCOPY Pictures D:Photos . COPY <filename> D: C:\ >COPY John. To copy files in a subdirectory: XCOPY <subdir> D: <subdir> Ex.txt D: 5.Basic DOS commands C. To copy a file: Ex. Ex.

Other commands C:\ >CLS C:\ >VER C:\ >VOL (clear the screen) (displays version of OS) (displays disk volume label) C:\ >DATE & TIME (displays and edit the date/time) C:\ >TREE (displays tree directory) CHKDSK: Checks for problems and repairs corrupted disks. Example: CHKDSK C: . the power is turned off while a program is still running.Basic DOS commands D. for example. A disk can sometimes get corrupted when.

C:\>DIR ?ohn.txt D: The following are legal and illegal characters in a filename: • Legal: A-Z 0-9 $#&@!()-{}'`_~ • Illegal: |<>\^+=?/[]".txt C:\>COPY *.Special Characters The ? represents any single character Ex.* and the space .txt The * represents any group of characters Ex.. C:\>DIR *.

Attrib • The attrib command is used to change the attributes of a single file or a directory. – Attrib +h (hide) – Attrib –h (unhide) • Example: – attrib +h filename (hide) – attrib –h filename (unhide) .

10. 3. 2. 7. 14.txt to subdirectory 1stSem Go to 1stSem (CD \student number\NIL\2ndSem) Create subdirectory Sked1 (MD Sked1) Create subdirectory Sked2 (MD Sked2) List all the files created in that subdirectory (DIR) Remove the subdirectory Sked1 (RD Sked1) Display tree directory (TREE) Close the command prompt (EXIT) . 9. 13. 12. 8. CD\) Create a directory with your student ID number as the name of your directory (MD student number) Go to the directory you created (CD student number) Create a subdirectory IT111L (MD NIL) Create a file Student_List.Sample Activity 1. 5.txt (Edit) Go to IT111L Copy file Student_List. 6. 11. 4. Go to the root directory D: (D:.

txt (Edit) Go to NIL (CD IT111L) Create a subdirectory 1stSem (MD 1stSem) Go to root directory (CD\) Copy file Student_List. 11. CD\) Create a directory with your student ID number as the name of your directory (MD student number) Go to the directory you created (CD student number) Create a subdirectory IT111L (MD IT111L) Create a file Student_List. 15. 13. 16.txt to 1stSem (COPY Student_List. Go to the root directory D: (D:. 4. 10. 2. 9.1. 14. 5. 6.txt 1stSem) Go to 1stSem (CD\student number\IT111L\1stSem) Create subdirectory Sked1 (MD Sked1) Create subdirectory Sked2 (MD Sked2) List all the files created in that subdirectory (DIR) Remove the subdirectory Sked1 (RD Sked1) Display tree directory (TREE) Close the command prompt (EXIT) . 8. 7. 12. 3.

txt Seatwork #1 Exer2 Exer2A Exer2A-1.txt Exer3 Exer3A Exer3B Exer3C Exer3C-1.txt Exer3C-2.D:\111Exer Exer1 Exer1A.txt Exer1B.txt Exer2A-2.txt .

Sign up to vote on this title
UsefulNot useful