Tag:on-line

  • JSP uses application to count the number of people online

    Time:2020-8-16

    This paper introduces the method of JSP using application to count the number of people online. Share with you for your reference. The specific implementation method is as follows: Copy codeThe code is as follows: <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%> <% String path = request.getContextPath(); String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”; %> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML […]

  • A vbs script to view LAN online IP

    Time:2020-5-13

    Copy codeThe code is as follows: strSubNet = “192.168.1.” Set objFSO= CreateObject(“Scripting.FileSystemObject”) Set objTS = objfso.CreateTextFile(“e:\PingResult.txt”) For i = 1 To 254 strComputer = strSubNet & i blnResult = Ping(strComputer) If blnResult = True Then objTS.WriteLine “Ping ” & strComputer & ” success!” End If Next objTS.Close WScript.Echo “Done!” Function Ping(strComputer) Set objWMIService = GetObject(“winmgmts:\\.\root\cimv2”) […]