Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Do
roomStr=InputBox("Please Enter the Room Number (100-105)....")
room = CInt(roomStr)
If room < 100 Or room > 105 Then
WScript.Echo Chr(7) & Chr(7)
MsgBox("Error, 100 to 105 Only!!!")
End If
Loop While room < 100 Or room > 105
COMP230_Wk4_IP_Array_Report.docx 1 Revision Date: 1213
In the space provided below to copy and paste the remainder of your IP_Array.vbs
sourcecode.
Loop While room < 100 Or room > 105
Do
compStr=InputBox("Please Enter the Computer Number (1-4)....")
computer = CInt(compStr)
If computer < 1 Or computer > 4 Then
WScript.Echo Chr(7) & Chr(7)
MsgBox("Error, 1 to 4 Only!!!")
End If
Loop While computer < 1 Or computer > 4
WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " &
ipAddress(room-100,computer-1)
C:\comp230>cscript IP_Array.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.