Operating System Theory
DOS Lab Exercises

1. Write the DOS command to display a wide listing of the contents of the root directory of the C: drive.

2. White the DOS command to display a directory listing of the contents of the root directory of the C: drive one     page at a time.

3. Write the DOS command to display all the files that begin with the letter "K" in the root directory of drive C:.

4. Write the DOS command to display all files on drive C whose filenames begin with the letter S and whose           extensions begin with the letter C.

5. Write the DOS command to display all files on drive A whose filenames are seven characters long and begin with the letters CHAR.

6. Write the DOS command to clear the screen and display the system prompt in the upper left hand corner of the screen.

7. Write the DOS command to display the files on drive A: that have the .DOC filename extension.

8. Write the DOS command to copy a diskette using drive A.

9. Write the DOS command to create the volume label WORD BACKUP on drive A:.

10. Write the DOS command to change the volume label to DOS LAB.

11. Write the DOS command to obtain on-line help about the XCOPY command.

12. Write the DOS command to print the directory listing of drive A on the printer.

13. Write the DOS command to display a directory listing of the files in drive A in file-size order, largest first.

14. Write the DOS command to make a sub-directory named NEWDIR.

15. Write the DOS command to copy a file named FILEFRED from the DIRECT1 subdirectory on drive A to a directory named DIRECT2 located at the root of drive C.

16. Write the DOS command to rename all the files on drive A which have the .HTML filename extension to have the .HTM filename extension.

17. Write the DOS command to change the command prompt to C:\>

18. Write the DOS command to copy a file named FILEFRED and name the new copy FILESUE.

19. Write the DOS command to find a file named MATILDA which is stored in a sub-directory somewhere on drive C.

20. Write the DOS command to erase a file named FILEBILL which is stored in the sub-directory named MYFILES located at the root of drive C.

21. Write the DOS command to return you to the root of drive C if your current directory is C:\TEACHING\OPSYS\SUMM

22. Write the DOS command to erase all the files on drive A.

23. Write the DOS command to delete a subdirectory named DIRFRED which is located at the root of drive C.

24. Write the DOS command to make the COMMAND.COM file Read Only.

25. Write the DOS command to copy all the files from a directory named DIRECT1 as well as files in its sub-directories?

26. Write the DOS command to view all the hidden files in the current directory.

27. Write the DOS command to launch the DOS editor to edit a file named FRED which is located on drive A.

28. Write the DOS command to execute a batch command named BACKUP.

29. Write the command to place a remarks comment in a batch file for the purpose of internal documentation.

30. Write the combination of keystrokes that will interrupt the execution of any batch file.

 

 

Hosted by www.Geocities.ws

1