You are on page 1of 1

DOS Exercises

In these exercises you will learn some basic DOS commands. cd = Change Directory md = Make Directory rd = Remove Directory rename = Rename File copy = Copy File dir = Directory (show the contents of a directory) type = List the contents of a file more = List files or directories a screen at a time (requires the pipe command | )

dir command switches: dir /w = Wide listing of directory dir /p = List contents a page (screen) at a time

Procedure
From a Windows XP screen: [click on] Start [click on] Run [Type] CMD [Click OK] to get to the Command Line Interface Prompt. Once in the Command Line Interface screen, perform the following exercises. Change to the C:\> which is your hard drive. Make a directory called practice_lab. Use your notes to do this. What command will you use?

Basic Directory Commands Note: write commands on a page once you run it successfully. This will be checked at the end of the lab session. Make a directory called class in side of the directory practice_lab. Similarly make a directory called docs and a directory called programs Change to the subdirectory class. You are required to create a file learndos.txt, inside directory practice_lab. Write a short description of DOS. Save the file learndos.txt. 5. From the C:\practice_lab> run a dir. You can see the files and folders you created. 6. Now copy the file learndos.txt into docs and class directories. 7. Copy class directory into programs directory. 8. Hide the directory class and verify whether it has been hidden or not.(hint: dir) 9. Delete directory class now. You might need to unhide it first. 10. Rename directory docs into documents. 11. Move documents directory into programs directory. 12. Change to subdirectory documents. Use relative path to create a new directory called new_directory inside directory practice_lab. 1. 2. 3. 4.

You might also like