Comp230 Week 6 Ip File Report
1315 words
6 pages
VBScript IP File Report 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.' VBScript: IP_FileWrite.vbs
' Written by:
' Date:
' Class:
' Professor:
' ===================================
' This initializes 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" …show more content…
C:\Scripts>cscript IP_AppendRead.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
The IP Address in Room 100 for Computer 1 is 192.168.10.11
The IP Address in Room 100 for Computer 2 is 192.168.10.12
The IP Address in Room 100 for Computer 3 is 192.168.10.13
The IP Address in Room 100 for Computer 4 is 192.168.10.14
The IP Address in Room 101 for Computer 1 is 192.168.10.19
The IP Address in Room 101 for Computer 2 is 192.168.10.20
The IP Address in Room 101 for Computer 3 is 192.168.10.21
The IP Address in Room 101 for Computer 4 is 192.168.10.22
The IP Address in Room 102 for Computer 1 is 192.168.10.27
The IP Address in Room 102 for Computer 2 is 192.168.10.28
The IP Address in Room 102 for Computer 3 is 192.168.10.29
The IP Address in Room 102 for Computer 4 is 192.168.10.30
The IP Address in Room 103 for Computer 1 is 192.168.10.35
The IP Address in Room 103 for Computer 2 is 192.168.10.36
The IP Address in Room 103 for Computer 3 is 192.168.10.37
The IP Address in Room 103 for Computer 4 is 192.168.10.38
The IP Address in Room 104 for Computer 1 is 192.168.10.43
The IP Address in Room 104 for Computer 2 is 192.168.10.44
The IP Address in Room 104 for Computer 3 is 192.168.10.45
The IP Address in Room 104 for Computer 4 is 192.168.10.46
The IP Address in Room 105 for Computer 1 is 192.168.10.51
The IP Address in Room 105 for Computer 2 is 192.168.10.52
The IP