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

Lab 2 © R. Craig Collins, 2005/6

See Chapter 6

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

 •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, 30%

Use your book to document terms.
Optionally, you may print this document.
Right click here, then choose Save Target as... to save in the Lab2 folder. Uggest you save this as yourname-lab2.rtf
Open Wordpad, then open yourname-lab2.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.

COPY
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

XCOPY
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

ATTRIB
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

RENAME or REN
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

UNDELETE
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

DOS Activity [ Cheatsheet available (pdf) ]
Change to your drive (examples use A:, you may use O:, or any of your available drives)

  1. Create a file called test.txt (put your name for the file contents)
    Refer to Lab 1, for a reminder on creating a file.
  2. Create a directory named LAB2
  3. Create a directory named TEST inside of LAB2
  4. Copy test.txt from the root of A: to inside LAB2
  5. Copy test.txt from the root of A: to inside LAB2, but call the new copy test.ltr
  6. XCOPY LAB2, and its files, to a new folder named LAB2BKUP
  7. Verify the empty TEST folder was copied as well
  8. Run tree /f, it should look like
  9. Set a:\test.txt to be a hidden file
  10. Generate a directory listing to verify the file is hidden
  11. Set a:\test.txt to no longer be a hidden file
  12. Type out the contents of a:\test.txt
  13. Rename all of the files in LAB2 from test to homework, but leave the extensions the same (one command, using a wildcard)
  14. Rename a:\test.txt to test.doc
  15. If using DOS, not the Windows command prompt: Delete test.doc
  16. If using DOS: not the Windows command prompt:Undelete test.doc
  17. Clear your screen
Hands On:
  1. Scenario, your prompt is C:\>,
    there is a file called homework.txt in C:\DOS. In your lab document,
    give the command to copy the file from C:\DOS to the root of C…
    that is, write out a copy command with a full path statement for the source and a full path statement for the destination.

    Lab 2 illustrated

  2. What is the command you would enter in DOS to copy all the homework files in the lab2 directory to a lab3 directory, if that directory existed?
  3. What is the command you would enter in DOS to copy a directory and all its contents, as in from lab2 to lab2bkup?
  4. What is the command you would enter in DOS to change the attributes of a file named fred.txt to hidden?
  5. What is the command you would enter in DOS to rename a file from test.txt to test.doc? Can you use a full path statement for the destination?

In Windows, select multiple items: select the entire lab2 directory, lab2bkup directory, and test.doc;
zip them, and
rename to yourname-lab2.zip.
Log into Desire2Learn, choose this class, choose Dropbox, and select Lab 2.
Browse to yourname-lab2.zip and upload it.

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


for Labs that require files to be electronically submitted
 •if you have multiple files, 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