Preview

Vbscript Ip File Lab

Good Essays
Open Document
Open Document
2275 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Vbscript Ip File Lab
VBScript IP File Lab Objective
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.

Element K Network Connections

For this lab, we will only need to connect to vlab-PC1. The computer vlab-PC1 is the computer on the left side while vlab-PC2 is on the right. If you leave the cursor on the PC icon for a few seconds, a tool-tip message will appear indicating the hostname of the PC. Open vlab-PC1 and log in as Administrator with the password password.

Lab Overview
We are going to start our lab with the same two-dimensional array of IP addresses. Rather than accessing this array of IP address using the room and computer index values, we are going to write the array of IP addresses to a Text file named IP_Addresses.csv where each line of the file will contain the Comma Separated Values (CSV) for room#,computer#,IP_Address. We will then write a separate VBScript program that will append four new lines of data that will represent the four computers in the new room 106 to the IP_Addresses.csv file. Lastly, we will open and read the newly appended IP_Addresses.csv and display it contents in a meaningful way.

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.

Task 1: Download and Open IP_ArrayFile_start.vbs in NotePad++

* Open NotePad++ and from the menu, select File/Open. Open the file IP_File_start.vbs in the C:\Scripts 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.

* The line dim

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1330Lab10Worksheet

    • 407 Words
    • 3 Pages

    Your manager sends instructions to two different administrators to perform conflicting tasks. These administrators perform the tasks on two different domain controllers in two different sites. After replication occurs, you notice odd results in the Active Directory Users And Computers node.…

    • 407 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 7

    • 458 Words
    • 2 Pages

    The first 8 bits of the host address and set the rest of the numbers in the address to 0.…

    • 458 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    english 102 flylab

    • 1335 Words
    • 6 Pages

    To copy your data from your online notebook into this section, click on Export Notes and then copy and paste your data into this section. You must disable your pop-up blocker before exporting. Identify each set of data with a title.…

    • 1335 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Paste your Windows Explorer screenshot that shows your Citrix NETW360 directory structure here. An example screenshot appears in your Week 1 iLab tab.…

    • 642 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Array Structure Proposal

    • 712 Words
    • 3 Pages

    In order for this program to perform its intended function of contacting all the patients regarding their upcoming appointment, information regarding these patients needs to be gathered. Each patient will have his or her name, phone number, email, and appointment type recorded into the program. The recording of the patient’s information will need to utilize a section of programming known as arrays. An array is a collection of variables of the same type and referenced by the same…

    • 712 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Week 3 Ilab

    • 367 Words
    • 2 Pages

    Student Name | | Class | | Date | | VBScript Network Shares Lab Key ' VBScript: NetShareServer.vbs ' Written by: Student Name ' Date: Today's Date ' Class: COMP230 ' Professor: Professor Name ' = == == ==…

    • 367 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Criminal

    • 1268 Words
    • 4 Pages

    Once you are on the Toolwire® landing page, click the Lab Access link toward the bottom of the page.…

    • 1268 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Comp230 Wk6 Lab

    • 947 Words
    • 4 Pages

    In the space provided below, copy and paste your IP_FileWrite.vbs program sourcecode. If it doesn’t fit, use the next page for the continuation of your program sourcecode.…

    • 947 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Cisco

    • 264 Words
    • 2 Pages

    Note: You can use this document to record the random values (router names, addressing, etc.) that you will receive when launching the Packet Tracer activity.…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Network Final

    • 437 Words
    • 2 Pages

    How many IP addresses does the school need immediately? How many might it eventually need for the initial seven rooms? How many could it need if it gets enough computers for the entire school? Exact numbers aren 't expected, but you should be able to estimate pretty close from the data provided.…

    • 437 Words
    • 2 Pages
    Good Essays
  • Good Essays

    using the Data Acquisition Toll box provided by MATLAB. Data Acquisition tool box needs to be installed…

    • 865 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    1. Log in to the Windows 2003 machine with a username of Administrator and a password pof P@ssw0rd.…

    • 1678 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program…

    • 926 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Warehouse Management

    • 7373 Words
    • 30 Pages

    Edition, Apress, PP 204-508 2. Steven Holzner (2005) " Visual Basic .Net Programming ", 2 n d Edition, DreamTech, PP 327-774…

    • 7373 Words
    • 30 Pages
    Powerful Essays
  • Good Essays

    4. Now right click on the Hosts file and choose "properties" and Navigate to "security" tab on the property window.…

    • 720 Words
    • 3 Pages
    Good Essays