Fundamental Survival Skills in DOS

Module Q03hD6


Contents

Audience and Objectives

Overview

Getting Ready

  1. Explore the Help information center
  2. Create a directory on your diskette
  3. Copy all the files from another disk to the new directory
  4. Delete some of the files in the directory
  5. Rename some of the the files in the directory
  6. Create a second (sub)directory
  7. Move some of the files to the subdirectory
  8. List the files in various ways

About this document...


Overview

In this exercise, you will practice dealing with DOS files and directories.We will create several directories, copy, delete, and rename files, and deletea subdirectory. As you go, you will be using the DOS "help" feature to learnabout the important commands.

If you are viewing this with a Web Browser,you can click this symbol wherever it appears, if you need to to return tothe top of this Web page:


0. Getting Ready...

Begin by logging in to the local area network. This version is intendedfor use with the CIS100 account at Washtenaw Community College. If youare not sure how to do this, follow instructions given in a separate handout.

Do not run MS Windows.


1. Explore the Help information center

The DOS Help command gives very detailed information about all commands.Although it can sometimes be confusing, it is worth learning how to use Help.Remember the old proverb:

Give a man a fish and feed him for a day.
Teach a man to fish and feed him for life.

By learning how to use DOS Help, you'll be able to "fish" for your owninformation.


2. Create a directory on your diskette

Make sure your diskette is in the computer. In most labs at WCC, thisworks best in drive B: I will assume that's where yours is. If not, youwill need to substitute A: wherever these instructions say B:

<Enter> key to have DOS carry out your command.
Check: Your prompt should now look like this:
B:\>
If not, try again. If this still doesn't work, ask for help.

 Volume in drive A is L KRIEG     Volume Serial Number is 2D5F-0FE6 Directory of A:\X            <DIR>         02-26-96   3:42p        1 file(s)              0 bytes                       1,457,152 bytes free


3. Copy all the files from another disk to the new directory

H:\CIS\CIS100\KRIEG\DOS\100S3.WKSH:\CIS\CIS100\KRIEG\DOS\100S4.WKSH:\CIS\CIS100\KRIEG\DOS\BELLY.TXTH:\CIS\CIS100\KRIEG\DOS\HART.TXTH:\CIS\CIS100\KRIEG\DOS\FOX.TXTH:\CIS\CIS100\KRIEG\DOS\HORSE.TXTH:\CIS\CIS100\KRIEG\DOS\PEACOCK.TXTH:\CIS\CIS100\KRIEG\DOS\LION.TXTH:\CIS\CIS100\KRIEG\DOS\STATUE.TXTH:\CIS\CIS100\KRIEG\DOS\ANT.TXTH:\CIS\CIS100\KRIEG\DOS\100S5.WKSH:\CIS\CIS100\KRIEG\DOS\MYGRADES.WKSH:\CIS\CIS100\KRIEG\DOS\POLICY.DOCH:\CIS\CIS100\KRIEG\DOS\POLICY.WPS       14 file(s) copied

The order may be different, but there should be 14 files with the names listedhere.


4. Delete some of the files in the directory

We will delete the two files called "policy" by using wildcards.


5. Rename some of the files in the directory


6. Create a second (sub)directory


7. Move some of the files to the subdirectory

We'll move all the text files to the Y subdirectory. To do this:


8. List the files in various ways

The normal directory listing is in no particular order and may be too longto show on the screen. Use the DOS Help feature to figure out how to solvethese problems, or any other resources you have available.

When you have figures these things out, you will be ready to send a listingto the printer. Turn the listing in to your instructor. Note: Your diskshould be labelled with your first initial and last name. If not, type:
label f last
(substitute your first initial and last name, up to 9 characters, for 
f last)

Your directory should have these features:

This is a research question, to help you read and understand the Helpmessages and other resources. Here are some hints:

Hint 1: One DIR command can do all these things

Hint 2: You can tell the DIR command to add these features by using"switches," which are modifiers described in DOS Help.

Hint 3: As you read, write here any modifiers that might be usefulfor getting a directory feature:

In order to get: Use this modifier:
Wide listing: /
File names in alphabetical order: /
Include subdirectories: /

Write your complete directory command here: dir  /__  /__  /__

Type the command at the computer, and see if it gives what was asked for.When it does, Send it to the printer by adding
> prn
as the last thing on the command line.



Audience:

This is for people who need to know how to perform the MS-DOS ® operationsneeded for fundamental use of a DOS-based computer. They need to know howto start the computer, insert a disk, and use the keyboard; formatting adisk is not covered in this unit. (These basics are discussed in modulesH1-H7.)

Objectives:

On successful completion of this unit, you will be able to...


About this document...

Module Q03hD6: Fundamental Survival Skills in DOS

Author:
LaurenceJ. Krieg
Institution:
Departmentof Computer Information Systems, Washtenaw Community College
Date:
Original 26 Feb 1996 (for WCC network environment)
Corrections & Enhancements 27 Feb 1996
Latest revisions: 21 January 1997