The DOS Exercises
Total Page:16
File Type:pdf, Size:1020Kb
DOS Section DOS Fundamentals DOS Fundamentals Classroom Exercises: The following exercises are to be completed in class after completing Professor DOS computer based training. Refer to other DOS books and the Help in DOS for additional help and material in the back of the packet for help with using VMware Player. 1. Turn on the monitor and computer and launch VMware Player. Open the MS-DOS-PROF Virtual Machine. 2. At the C:\> Prompt, determine the version of DOS in use. DOS Version _______________ 3. Write down the computer’s date and time. Date: ________________________ Time: ________________________ 4. Change the computer’s date to December 21, 1999 and the time to 4:00pm. 5. Create a virtual floppy diskette in VMware Player (refer to instructions in the back of the packet) in the A: drive and from the C: prompt use the CHKDSK command to check the diskette for: (1) The number of bytes of total disk space ____________ (2) Total allocation units on disk ____________________ 6. List the four basic attributes for files: (1) ___________________________ (2) ___________________________ (3) ___________________________ (4) ___________________________ Page 1 of 9 DOS Section DOS Fundamentals 7. Use the DOS HELP to determine what switches are available for the following DOS commands and list them below. COPY __________________________________________ FORMAT _______________________________________ DIR ____________________________________________ XCOPY ________________________________________ TREE __________________________________________ 8. From C:\>, make a copy of the CONFIG.SYS file and call it CONFIG.BAK. 9. From C:\>, make a copy of the file AUTOEXEC.BAT and call it AUTOEXEC.BAK. 10. Delete the AUTOEXEC.BAT file from the root of C: drive. 11. Rename the AUTOEXEC.BAK file to AUTOEXEC.BAT. 12. Display the contents of the CONFIG.SYS file on your screen using the TYPE command, and list them below. ______________________________ ______________________________ ______________________________ ______________________________ 13. Display the contents of the AUTOEXEC.BAT file on your screen using the TYPE command, and list them below. ______________________________ ______________________________ ______________________________ ______________________________ 14. Display all of the hidden files in the root of your C: drive and list them below. ________________________________ ________________________________ Page 2 of 9 DOS Section DOS Fundamentals 15. Reboot the computer by selecting: Player Power Restart “Guest” in VMware Player. 16. Run the DOSKEY command. 17. Edit the AUTOEXEC.BAT command to load the DOSKEY command. 18. Determine how much memory is in the computer and complete the chart below using the MEM command. Memory Total Used Free Conventional Upper Reserved Extended Total Memory 19. Determine how much memory each of the programs listed below takes up in RAM. Total Conventional Upper Memory Memory Memory HIMEM SETVER COMMAND 20. Reset the time and date to the current setting. 21. Display the contents of the DOS directory listing them from smallest to largest. (Do this from the C: Prompt.) List the smallest and largest. Smallest __________________________ Largest ___________________________ Page 3 of 9 DOS Section DOS Fundamentals 22. Display the DOS directory to fit on two screens (Display Wide). 23. Display the DOS directory one page at a time. 24. Display the files in the DOS directory with the SYS extension (display only these files). Enter the number of files: ________ 25. Now clear the screen. 26. Display the root directory and its subdirectories using the TREE command. 27. Use the CHKDSK command to show the status of the C: drive. 28. Make a directory called BACKUP on the C: drive and copy the CONFIG.BAK file into this directory. 29. Remove the BACKUP directory using the DELTREE command. 30. Copy all the files from the DOS directory that will fit on a clean diskette in drive A: using the XCOPY command. 31. Using a second virtual floppy diskette (refer to instructions in the back of the pack and create a floppy called floppy2), copy all the files in the DOS directory with the SYS extension to the A: drive. 32. From the C:\> prompt delete the file named RAMDRIVE.SYS from the A: drive. 33. Show that the file is deleted without displaying the remaining files on the A: drive. 34. Recover the file RAMDRIVE.SYS using the UNDELETE command and show that it is back. 35. Format a diskette in the A: drive and copy the following files from the hard drive to the diskette: Autoexec.bat Config.sys Format.com 36. Format the diskette in the A: drive again. Page 4 of 9 DOS Section DOS Fundamentals 37. Recover the data on the diskette you just formatted (unformat). 38. Check the root directory of drive C: and make sure that COMMAND.COM has the Read-only attribute. 39. Format a diskette and label it with your first name. 40. Make a directory on the C: drive called Units. 41. Create a subdirectory of UNITS called “CHAPTERS” with separate files named “CHAPTER1.TXT, CHAPTER2.TXT, CHAPTER3.TXT, CHAPTER4.TXT, and CHAPTER5.TXT". 42. Eliminate the “UNITS” directory. Do not use the format command. 43. Make the diskette a bootable diskette using the SYS.COM command.(use the virtual floppy you created earlier called floppy1) 44. Copy all “EXE” files (or as many as possible) from the C: drive’s DOS directory to the A: drive. 45. Make a bootable diskette and includes the files listed below (Create another virtual floppy called floppy3 to do this). This diskette will be needed in order to complete the steps 46 and 47. ________Sys.com_______________________________________ ________Format.com____________________________________ ________Unformat.com__________________________________ 46. Format the C: drive from the A: drive. 47. Unformat the C: drive. (You will need the diskette created in step 45 in order to complete this step.) 48. Delete the CONFIG.SYS and AUTOEXEC.BAT files. Page 5 of 9 DOS Section DOS Fundamentals 49. Create a CONFIG.SYS file using the following parameters: Files = 49 Buffers = 39 DOS = HIGH And load the following devices in to memory a. ANSI.SYS b. HIMEM.SYS c. SETVER.EXE 50. Create a batch file (AUTOEXEC.BAT) that performs the following functions a startup: Provides a prompt that shows the full default directory. Instructs the computer to search the root directory, and the DOS directory. Loads the DOSKEY command. 51. Reboot the system from the C: drive. 52. Use the tree command to display all files, directories, and subdirectories one page at a time. 53. Delete all files on the diskettes, including the volume label. Do not use the format command. 54. After you have completed all of the exercises, repeat them until you are at a level where you have mastered each step, then at this point you will be ready to take your performance exam. Page 6 of 9 DOS Section DOS Fundamentals Classroom Server Information Server Name IP Address CST-LAB-001 10.200.200.1 CST-LAB-002 10.200.200.2 How to connect to the classroom servers To connect to CST-LAB-001 type \\CST-LAB-001\public in the run dialog box. Note: this is a public server for the classroom and files such as utilities, evaluation software, and drivers can be shared here by students. To connect to CST-LAB-001 type \\CST-LAB-002\shared in the run dialog box. Note: most of the operating systems software, applications, and drivers and utilities needed for the classroom lab are located on this server. You will be prompted for a username and password. Type in the following user name and password when you see the prompt. User Name: Student Password: password#1 Various operating system image files, practice tests, and additional software is available on the servers. Classroom Printer Information Printer IP Address Dell 2335DN 10.200.200.11 HP Laserjet P3015 10.200.200.10 Page 7 of 9 DOS Section DOS Fundamentals How to create a virtual floppy diskette in VMware 1. Click on Player Removable Devices Floppy Settings 2. In the Virtual Machines dialog box click on floppy to highlight it. Then click on the button “Use floppy image file”. Click the “Create” button and type floppy1 in the box for the file name and then click “save”. Page 8 of 9 DOS Section DOS Fundamentals Rev BH 2/8/2016 DOS Exercise2015b.doc Page 9 of 9 .