Lab Assignment 2 - CIS121AB Lab Assignment 2 Open a new...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS121AB Lab Assignment 2 Open a new word document. Change the default Style to No Spacing. You will be capturing screen shots of various commands and copying them to this document to verify completion of the exercises. Save the document using the following format: lastname 2.doc. When you have completed all of the tasks, save the word document and email it to [email protected] with CIS121AB in the subject line. You may refer to the book for commands and help with some of the steps. These are open book assignments. All commands or keystrokes are listed in bold . Task 1: Creating a simple batch file A batch file is simply a small program that you can write to execute a string of commands. They can be as simple as executing a few commands, or extremely complex files that can automate routine tasks performed by network administrators. They are easy to create and edit with Notepad. If the CIS121AB directory from Assignment 1 does not still exist, create a new one. a. It’s a good idea to keep all of your batch files in a single directory. Create a directory called Batch for your batch files in the CIS121AB directory. Execute a command to show this directory was created. Capture this screen to your document and label it Task 1a. b. Change to the new Batch directory c. At a command prompt type notepad test.bat . Notepad should open with a window asking if you want to create a new file. Click Yes. Enter the following commands: @echo off Echo Hello This is my first batch file Pause d. Save the notepad file. Close the notepad window. e. At the command prompt enter test and press Enter. Capture this screen and copy it your document and label it Task 1e. f. What is the purpose of the @echo off command? Provide an answer in your document and label it Task 1e. g. What is the purpose of the pause command? Provide an answer in your document and label it Task 1f. Close the command prompt window. Task 2: Modify the search Path a. Open a new command prompt window and enter test . What occurs and why? Provide an answer in your document and label it Task 2a. b. From your desktop, click Start, right-click Computer, and select Properties. Click Advanced system settings from the Control Panel Home section on the left and then select the Advanced Tab. Click Environment Variables. A window will open listing the Environment Variables. Under the list of User Variables, you may see your username or something like this: %USERPROFILE% What does this represent? Provide an answer in your document and label it Task 2b. Note: you will need to complete either Step c or Step d , not both.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
c. If there is already an entry named PATH, select it and click Edit. At the beginning of the Variable value field, enter C:\Users\watson\CIS121AB\Batch ; Make sure to add the semicolon at the end to separate this name from the others that are already there. (
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/19/2012 for the course CIS 121AB taught by Professor Watson during the Fall '11 term at Chandler-Gilbert Community College.

Page1 / 7

Lab Assignment 2 - CIS121AB Lab Assignment 2 Open a new...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online