Submitted by: Submitted by gui1tyspark
Views: 10
Words: 2335
Pages: 10
Category: Science and Technology
Date Submitted: 10/18/2015 03:13 PM
VBScript IP File Lab
Objectives
In this lab, students will complete the following objectives.
* Create a VBScript program using NotePad++.
* Write a two-dimensional array of IP addresses to a text file.
* Read the IP Addresses text file into a script.
* Append new Room/PC/IP address data to the text file.
* Use the object Scripting.FileSystemObject.
Lab Diagram
During your session you will have access to the following lab configuration.
Connecting to your lab
For this lab, we will only need to connect to Vlab-PC1.
* Vlab-PC1
To start simply click on the named Workstation from the device list (located on the left hand side of the screen) and click Power on in the tools bar. In some cases the devices may power on automatically.
During the boot up process an activity indicator will be displayed in the name tab.
* Black—Powered Off
* Orange—Working on your request
* Green—Ready to access
If the remote console is not displayed automatically in the main window (or popup) click the Connect icon located in the tools bar to start your session.
If the remote console does not appear please try the following option.
* Switch between the HTML 5 and Java client versions in the tools bar.
In the event this does not resolve your connectivity problems, please visit our Help/Support pages for additional resolution options.
Task 1: Create the IP_FileWrite.vbs Program
Note: All captures must be text only—DO NOT capture the NotePad++ application window or the command prompt window. Use copy and paste of text only.
1) Open NotePad++ and from the menu, select File/Open. Open the file IP_File_start.vbs in the C:\comp230 directory. If you do not see this file, you can download it and extract it from the eCollege Doc Sharing file IP_File_start.zip.
Modify the Programmer Header as needed and Save As the VBScript file as IP_FileWrite.vbs.
We are using the array of IP addresses that was used in Lab 4. The line dim...