婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 使用ASP獲得服務器網卡的MAC地址信息

使用ASP獲得服務器網卡的MAC地址信息

熱門標簽:鄢陵學校如何做地圖標注 成都ai外呼系統線路 虛擬電話外呼系統 沈陽電話機器人公司 廣東語音外呼系統公司 鄭州智能外呼電銷機器人廠家 長春公司外呼系統中心 云南便宜外呼系統平臺 沈陽三五防封電銷卡
'----------------------提取所有網卡的信息--------------------' 

Public Function GetMacInfo() 
    On Error Resume Next 

    Dim fso, FileStr, AspSleepThread, CmdStr, SysDir, wshshell, CmdRe, MacFileContentFile, MacFileContent 
    Const MacFile = "TmpYesoulSoft001.LLP" 
    Set fso = Server.CreateObject("Scripting.FileSystemObject") 

    SysDir = Split(GlobalMod.GetSysDir, ",")(1) 
            If InStr(LCase(SysDir), "system32") = 0 Then 
            GetMacInfo = "本系統只能運行在Nt、Windows 2000、Windows.Net、Windows Xp、Windows 2003等32位系統下,不支持32位以下的系統!" 
            Exit Function 
            Else 
            CmdStr = SysDir + "\Cmd.exe /C " + SysDir + "\Ipconfig.exe /All > " + Server.MapPath(MacFile) 
            End If 
        CmdRe = Shell(CmdStr, vbHide) 
        If CmdRe > 0 Then 
        Set MacFileContentFile = fso.OpenTextFile(Server.MapPath(MacFile), 1, False, TristateUseDefault) 
        'GetMacInfo = MacFileContentFile.ReadAll() 
        'Response.Flush 
        FileStr = MacFileContentFile.ReadAll() 
        MacFileContentFile.Close 
        Set MacFileContentFile = Nothing 
        Set AspSleepThread = Server.CreateObject("YesoulSoft.SleepThread") 
        '定義線程掛起的時間,這里為毫秒 
        AspSleepThread.SleepTime = 500 
        AspSleepThread.BeginSleepThread 
        GetMacInfo = ExecuteOne(FileStr, "Physical Address. . . . . . . . . : (.*)") 
        Set AspSleepThread = Nothing 
        Else 
        GetMacInfo = "系統當前無法獲取您的網絡信息,請檢查權限繼承關系后再運行本系統!" 
        Exit Function 
        End If 
        DelFile MacFile 

    Set fso = Nothing 

End Function 
'------------------在字符串匹配一次結果-------------------' 
Public Function ExecuteOne(inpStr, PatStr) 
  Dim oRe, oMatch, oMatches 
  Set oRe = New RegExp 
  oRe.Pattern = PatStr 
  inpStr = LCase(inpStr) 
  oRe.IgnoreCase = True 
  Set oMatches = oRe.Execute(inpStr) 
  Set oMatch = oMatches(0) 
  ExecuteOne = oMatch.SubMatches(0) 
End Function

標簽:朝陽 馬鞍山 平頂山 湖北 孝感 防城港 遼陽 四平

巨人網絡通訊聲明:本文標題《使用ASP獲得服務器網卡的MAC地址信息》,本文關鍵詞  使用,ASP,獲得,服務器,網卡,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《使用ASP獲得服務器網卡的MAC地址信息》相關的同類信息!
  • 本頁收集關于使用ASP獲得服務器網卡的MAC地址信息的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 阳谷县| 台北市| 彰武县| 青田县| 沐川县| 克东县| 武强县| 德惠市| 当雄县| 博客| 尚义县| 衡阳县| 湄潭县| 正宁县| 南川市| 静宁县| 南靖县| 汶川县| 石嘴山市| 共和县| 临夏县| 莱阳市| 礼泉县| 玉门市| 万年县| 通海县| 革吉县| 靖州| 龙川县| 黔南| 垫江县| 西安市| 巩义市| 右玉县| 海兴县| 辰溪县| 康定县| 杨浦区| 奉化市| 滦平县| 定州市|