If cintroomstr100 or cintroomstr105 then chr7 error

This preview shows page 2 - 3 out of 4 pages.

if CInt(roomStr)<100 OR 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) <100 OR CInt(roomStr) >105 Do WScript.StdOut.Write("Please Enter the Computer Number (1 - 4) .............. ") compStr = WScript.StdIn.ReadLine() if CInt(compStr)<1 OR CInt(compStr)>4 Then WScript.StdOut.WriteLine(Chr(7) & Chr(7) & "Error, 1 to 4 only!!!") Else computer = CInt(compStr)-1 End if Loop While CInt(compStr)<1 OR (compStr)>4 WScript.Echo vbCrlf & "The IP Address in Room " & Cstr(room+100) & _ " For computer " & CStr(computer+1) & " is " & _ ipAddress(room,computer) & vbCrlf 'Display All IP Addresses Y/N? Do WScript.StdOut.Write("Do you wish to Display all the IP Addresses (Y/N) ..... ") ans = WScript.StdIn.Readline() If ans <> "Y" AND ans <> "y" AND ans <> "N" AND ans <> "n" Then WScript.StdOut.WriteLine(chr(7) & chr(7) & _ "Error, Y,y,N,n response only!!!") End if Loop While ans <> "Y" AND ans <> "y" AND ans <> "N" AND ans <> "n" if ans = "Y" OR ans = "y" Then for room = 0 to 5 for computer = 0 to 3 WScript.Echo "The IP Address in Room " & Cstr(room + 100) & _ " For computer " & Cstr(computer+1) & " is " &_ ipAddress(room,computer) Next Next End if 2
Image of page 2

Subscribe to view the full document.

In the space provided below, copy and paste the RUN of your IP_Array.vbs program.
Image of page 3
You've reached the end of this preview.
  • Spring '12
  • geneva
  • IP address, Web server

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern