• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

COMP-230 Week 6 Lab: VBScript IP File Report (SOLVED

Document preview thumbnail
Preview 2 out of 6 pages

COMP-230 Week 6 Lab: VBScript IP File Report (SOLVED

Content preview

Student Zackery Kost Class COMP- Dat 02/06/20
Name 230 e 17

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.
' 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)
dim room
dim computer

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"


'''''define the constants
Const READ = 1
Const WRITE = 2
Const APPEND = 8
Const ASCII = 0

'''''defining the varables
fileName = "IP_Addresses.csv"
ipAddrStr = ""

'creating the new files
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(fileName) Then
fso.DeleteFile(fileName)
End If
COMP230_W6_IP_File_Report.docx 1
This study source was downloaded by 100000845689434 from CourseHero.com on 05-05-2022
Revision Date: 1213
12:24:34 GMT -05:00


https://www.coursehero.com/file/20057629/COMP-230-ZKost-iLab-Week-6/

, In the space provided below, copy and paste the remainder of your IP_FileWrite.vbs
sourcecode if it did not fit in the first textbox.
' writing room, comp, and address to a file
For room = 0 to 5
For computer = 0 to 3
ipAddrStr = CStr(room + 100) & "," & CStr(computer + 1) & "," & _
ipAddress(room, computer) & vbCrlf
ipAddrFile.Write(IpAddrStr)
Next
Next
ipAddrFile.Close
Set ipAddrFile = fso.OpenTextFile(fileName,READ,ASCII)
WScript.Echo ipAddrFile.ReadAll




COMP230_W6_IP_File_Report.docx 2
This study source was downloaded by 100000845689434 from CourseHero.com on 05-05-2022
Revision Date: 1213
12:24:34 GMT -05:00


https://www.coursehero.com/file/20057629/COMP-230-ZKost-iLab-Week-6/

Document information

Uploaded on
May 5, 2022
Number of pages
6
Written in
2021/2022
Type
Exam (elaborations)
Contains
Unknown
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ProfGoodluck
4.0
(705)
Sold
3631
Followers
2870
Items
9468
Last sold
1 hour ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions