Preview

VBScript Program Code: Lab

Powerful Essays
Open Document
Open Document
642 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
VBScript Program Code: Lab
Student Name Class Date
VBScript IP Array Lab Key

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 In the space provided below to copy and paste the remainder of your VBScript sourcecode.

' VBScript: IP_Array_start.vbs
' Written by: Student Name
' Date: Today's Date
' Class: COMP230
' Professor: Professor Name
' ===================================
' This initialize a 2-dimension array
' of IP Address. The first index +100
' is the room# and the second index+1
' is the computer# in the room. dim ipAddress(5,3) ipAddress(0,0)="192.168.10.11" ipAddress(0,1)="192.168.10.12" ipAddress(0,2)="192.168.10.13" ipAddress(0,3)="192.168.10.14" ipAddress(1,0)="192.168.10.19" ipAddress(1,1)="192.168.10.20" ipAddress(1,2)="192.168.10.21" ipAddress(1,3)="192.168.10.22" ipAddress(2,0)="192.168.10.27" ipAddress(2,1)="192.168.10.28" ipAddress(2,2)="192.168.10.29" ipAddress(2,3)="192.168.10.30" ipAddress(3,0)="192.168.10.35" ipAddress(3,1)="192.168.10.36" ipAddress(3,2)="192.168.10.37" ipAddress(3,3)="192.168.10.38" ipAddress(4,0)="192.168.10.43" ipAddress(4,1)="192.168.10.44" ipAddress(4,2)="192.168.10.45" ipAddress(4,3)="192.168.10.46" ipAddress(5,0)="192.168.10.51" ipAddress(5,1)="192.168.10.52" ipAddress(5,2)="192.168.10.53" ipAddress(5,3)="192.168.10.54"

End If ' Query the IP Address in a given room
Do
WScript.StdOut.Write("Please Enter the Room Number (100-105) ..... ") roomStr = WScript.StdIn.ReadLine() If CInt(roomStr)105 Then WScript.StdOut.WriteLine(chr(7) & chr(7) & "Error, 100 to 105 Only!!!") Else room = Cint(roomStr)-100 End If
Loop While CInt(roomStr)105
Do
WScript.StdOut.Write("Please Enter the Computer Number (1-4) ..... ") compStr = WScript.StdIn.ReadLine() If CInt(compStr)4 Then WScript.StdOut.WriteLine(chr(7) &

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

    a1 script win213

    • 380 Words
    • 2 Pages

    Enter the list price of the book with a dollar sign and decimal format –data type decimal…

    • 380 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1330lab8worksheet

    • 1017 Words
    • 6 Pages

    In this exercise you will be configuring Group Policy to see its effects on a Winodws 7 machine (Workstation##) that is a member of the domain. You will also test the implementation of a Local GPO before you move on to testing Group Policy Objects (GPOs.)…

    • 1017 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Just add a sentence following this command, You can also use this command to display the value of the…

    • 193 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    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.…

    • 1328 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Open the excel file which is password protected and goto Macro's (I am using Office 2007 so the menu's maybe different View >> Macros). Click on "Record Macro >> OK" and then click on "Stop Recording" from the same menu. Now goto "View Macros", you will find a Macro with a default name E.g. Macro1 - Select the macro name and click on Edit. Now a Visual Basic Editor opens up. Re-place the default code and Paste the below code.…

    • 1023 Words
    • 5 Pages
    Good Essays
  • Good Essays

    B062 Ict Crswrk

    • 1037 Words
    • 5 Pages

    After this I re-saved the document as a macro enabled file so that the macro would work later on as well:…

    • 1037 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 7 Lab 1

    • 566 Words
    • 3 Pages

    Then copy all of this information and paste it to a new text document and save it to your desktop.…

    • 566 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 256 Words
    • 2 Pages

    Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    vlab wk 1

    • 1842 Words
    • 9 Pages

    Write a paragraph (minimum five college-level sentences) below that summarizes what was accomplished in this lab, what you learned by performing it, how it relates to this week’s TCOs and other course material, and just as important, how you feel it will benefit you in your academic and professional career. (3 points)…

    • 1842 Words
    • 9 Pages
    Good Essays
  • Better Essays

    4. Copy and paste the program code into Word after the screen capture. Your instructor may ask you to include your entire project as a ZIP file. If so, she or he will give you specific instructions.…

    • 1818 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    Allscripts Step by Step

    • 430 Words
    • 2 Pages

    4. Verify the action is Send to Retail and the Pharmacy is correct. Select a different action when appropriate (Call Rx, Print Rx, Send to Mail Order).…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 3 Ilab

    • 367 Words
    • 2 Pages

    End of Program <<< Process finished. In the space provided below, copy and paste the RUN of your NetShareServer.vbs program: ' VBScript: NetShareClient.vbs ' Written by: Student Name ' Date: Today's Date ' Class: COMP230 ' Professor: Professor Name ' = ==…

    • 367 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Instructions: Copy and paste the following text into a document or create a document that contains the same information.…

    • 1221 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Chatmates

    • 470 Words
    • 2 Pages

    If you wish to perform a set of instructions in more than one location, you don’t have to duplicate the code. Write the instructions once, in an event procedure, and “call” the procedure from another procedure. When you call an event procedure, the entire procedure is executed and then execution returns to the statement following the call.…

    • 470 Words
    • 2 Pages
    Good Essays

Related Topics