top
Loading...
ASPPing簡要介紹
主頁:http://www.serverobjects.com/
下載:http://www.serverobjects.com/comp/aspping.zip

AspPing提供命令行程序ping相同的基本功能,AspPing是免費的,沒有免費的技術支持

安裝:
將dll文件,拷貝到一個子目錄,例如NT的目錄winntsystem32,win95/98的目錄windowssystem.
注冊dll文件,命令行將當前目錄換到該目錄,然后鍵入:
regsvr32 aspping.dll

簡單實例:
使用這個組件十分簡單
1.創建對象
2.設定一些屬性
3.調用Ping方法

<%
rem ***********************************************************
rem * 創建對象
rem ***********************************************************
Set Pinger = Server.CreateObject("AspPing.Conn")

rem ***********************************************************
rem * 設定要ping的主機
rem ***********************************************************
Pinger.RemoteHost = "www.microsoft.com"

rem ***********************************************************
rem * ping遠程主機的次數,可選
rem * 缺省值為 1
rem ***********************************************************
Pinger.PingCount = 2


rem ***********************************************************
rem * Ping 然后獲得ping的結果
rem ***********************************************************
Response.Write "<pre>" & Pinger.Ping & "</pre>"

rem ***********************************************************
rem * 釋放對象
rem ***********************************************************
Set Pinger = nothing

%>


AspPing的屬性
RemoteHost - string 字符串
Blocksize - byte 字節
TTL - byte 字節
AspPing方法
Ping - 返回結果(字符串)

北斗有巢氏 有巢氏北斗