會員 | 查詢client端的IP語法 如果不用php asp等,改用java scritp或vb script有沒有辦法查出client端的IP? |
回覆 |
Take it easy~ | 這樣嗎? ---------------- Test.vbs ---------------- Dim objWMI, colIP strComputer = "." Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colIP = objWMI.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each IP In colIP If Not IsNull(IP.IPAddress) Then For i = LBound(IP.IPAddress) To UBound(IP.IPAddress) MsgBox IP.IPAddress(i), vbInformation, IP.Description(i) Next End If Next Set objWMI = Nothing Set colIP = Nothing |
回覆 |
會員 | 多謝,我去試試 |
回覆 |
|
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。