To Temple College Class  logo R. Craig Collins > ITSC 1305 > Lab 1

Lab 1 © R. Craig Collins, 2005/7

See Chapter 4

General Lab Directions
Note: There is not enough time in lecture to cover all the material; read your book BEFORE you begin the lab
Note: Typically labs will require you to invest some time in the lab, outside of class lecture hours

A short video demonstrating the commands in this lab is available

 •Check with the Instructor for the due date
 •Document the required steps/commands/tags before you start, 30%
 •Successful completion of activity, 40%
 •Hands On Questions added to documentation after the activity is completed, (30%)

Use your book to document terms.
Optionally, you may print this document.
Right click here, then choose Save Target as... perhaps save in the Lab1 folder. I suggest you save this as yourname-lab1.rtf
Open Wordpad, then open yourname-lab1.rtf

At the end of this process, you will be turning in answers using the Quizzes area of Desire2Learn, based on the following questions. So, to get the best score, fill in all the answers in this document first.

1. FORMAT
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into DOS in this lab

2. MKDIR or MD
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into DOS in this lab

3. CD
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Wht does cd .. mean? What does cd \ mean?
Write out one example of how the command was entered into DOS in this lab

4. DIR
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Are there any common parameters mentioned in class? List them
Write out one example of how the command was entered into DOS in this lab

5. TREE
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Are there any common parameters mentioned in class? List them
Write out one example of how the command was entered into DOS in this lab

See Overview Two for other useful commands to be further discussed later, such as copy and type.

Activity
Recreate the following in DOS or the Windows command prompt, using the steps below.

DOS Taxes

Don't type the part of the instruction that represents the prompt, such as C:\> or A:\>

Optional: Format your floppy disk, if needed
C:\>format a:

Change to your drive (examples use A:, you may use O:, or any of your available drives)

C:\>a:
Make a Directory (folder) named lab1
A:\>md lab1
Verify the Directory was created by requested a Directory Listing
A:\>dir
Change into the Directory named lab1
A:\>cd lab1
Make a Directory (folder) named taxes
A:\lab1>md taxes
Verify the Directory was created by requested a Directory Listing
A:\lab1>dir
Change into the Directory named taxes
A:\lab1>cd taxes
Make a Directory named 2007
A:\lab1\taxes>md 2007
Make a Directory named 2008
A:\lab1\taxes>md 2008
Change into the Directory named 2007
A:\lab1\taxes>cd 2007
Make a directory for Quarter 1
A:\lab1\taxes\2007>md qtr1
Make a directory for Quarter 2
A:\lab1\taxes\2007>md qtr2
Make a directory for Quarter 3
A:\taxes\2007>md qtr3
Make a directory for Quarter 4
A:\taxes\2007>md qtr4
Change into the Directory named qtr4
A:\taxes\2007>cd qtr4

Copy data from the Console to a file named bankstmt.txt
A:\lab1\taxes\2007\qtr4>copy con  bankstmt.txt
Enter your name
Press [Ctl]+Z to end the file, and return to DOS
1 file(s) copied.

To read the contents of the file
A:\lab1\taxes\2007\qtr4>type bankstmt.txt

Change into the directory one step higher than qtr 4
A:\lab1\taxes\2007\qtr4>cd ..

Change to the root directory (\)
A:\lab1\taxes\2007>cd \

Display the entire disk structure with files
A:\>tree /f

Your screen should look like the image above.

Hands On:
Answer the following questions

  1. What is the command to get help in DOS?
  2. What is the command you would enter in DOS to format the floppy, if needed?
  3. What is the command you would enter in DOS to change from the C drive to the A drive?
  4. What is the command you would enter in DOS to generate a directory listing?
  5. What is the command you would enter in DOS to change to the lab1 directory?
    What is the command you would enter in DOS to change to the taxes directory?
  6. What is the command you would enter in DOS to change to the 2007 directory?
    What is the command you would enter in DOS to change to the qtr4 directory?
  7. What is the command you would enter in DOS to display the contents of the bankstmt.txt file?
  8. What is the command you would enter in DOS to change from the qtr4 directory to the 2007 directory?
  9. What is the command you would enter in DOS to change quickly to the root directory?
  10. What is the command you would enter in DOS to list directories and the files they contain?

In Windows, zip the entire lab1 directory, and rename to yourname-lab1.zip.
Log into Desire2Learn, choose this class, choose Dropbox, and select Lab 1.
Browse to yourname-lab1.zip and upload it.

You will then transfer your answers to the D2L Quiz for lab 1.
Choose the Quizzes menu, and locate Lab 1.


for Labs that require files to be electronically submitted
 • zip the required file(s) and/or folder(s)
 • rename the zipped file to reflect your name and the lab being turned in
       •Example: yourname-lab1 or yourname-lab1.zip (if your extensions are visible)
       (For additional help on selecting, zipping, or renaming files, see Windows Crash Course)

 If submitting by Temple College Desire2Learn:
       •Log into D2L, scroll to the bottom, and choose the correct course
       •When the Course Home Page appears, click on the Dropbox link.
       D2L navigation D2L Dropbox notes D2L Quizzes Notes D2L Discussion Notes
Dropbox directions