校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁(yè) > 知識(shí)庫(kù) > 使用ASP獲得服務(wù)器網(wǎng)卡的MAC地址信息

使用ASP獲得服務(wù)器網(wǎng)卡的MAC地址信息

熱門(mén)標(biāo)簽:鄢陵學(xué)校如何做地圖標(biāo)注 成都ai外呼系統(tǒng)線路 虛擬電話外呼系統(tǒng) 沈陽(yáng)電話機(jī)器人公司 廣東語(yǔ)音外呼系統(tǒng)公司 鄭州智能外呼電銷(xiāo)機(jī)器人廠家 長(zhǎng)春公司外呼系統(tǒng)中心 云南便宜外呼系統(tǒng)平臺(tái) 沈陽(yáng)三五防封電銷(xiāo)卡
'----------------------提取所有網(wǎng)卡的信息--------------------' 

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 = "本系統(tǒng)只能運(yùn)行在Nt、Windows 2000、Windows.Net、Windows Xp、Windows 2003等32位系統(tǒng)下,不支持32位以下的系統(tǒng)!" 
            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") 
        '定義線程掛起的時(shí)間,這里為毫秒 
        AspSleepThread.SleepTime = 500 
        AspSleepThread.BeginSleepThread 
        GetMacInfo = ExecuteOne(FileStr, "Physical Address. . . . . . . . . : (.*)") 
        Set AspSleepThread = Nothing 
        Else 
        GetMacInfo = "系統(tǒng)當(dāng)前無(wú)法獲取您的網(wǎng)絡(luò)信息,請(qǐng)檢查權(quán)限繼承關(guān)系后再運(yùn)行本系統(tǒng)!" 
        Exit Function 
        End If 
        DelFile MacFile 

    Set fso = Nothing 

End Function 
'------------------在字符串匹配一次結(jié)果-------------------' 
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

標(biāo)簽:朝陽(yáng) 馬鞍山 平頂山 湖北 孝感 防城港 遼陽(yáng) 四平

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《使用ASP獲得服務(wù)器網(wǎng)卡的MAC地址信息》,本文關(guān)鍵詞  使用,ASP,獲得,服務(wù)器,網(wǎng)卡,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《使用ASP獲得服務(wù)器網(wǎng)卡的MAC地址信息》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于使用ASP獲得服務(wù)器網(wǎng)卡的MAC地址信息的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 平舆县| 抚宁县| 图片| 敦煌市| 诏安县| 盘锦市| 甘南县| 永修县| 汝城县| 黎城县| 霸州市| 故城县| 无锡市| 垣曲县| 夹江县| 沙河市| 斗六市| 南开区| 依兰县| 木里| 镶黄旗| 双流县| 阜南县| 磴口县| 读书| 任丘市| 沧源| 富顺县| 苍梧县| 竹溪县| 阜平县| 岳阳市| 赞皇县| 会东县| 长寿区| 托克逊县| 西乌珠穆沁旗| 左云县| 嘉峪关市| 大石桥市| 海原县|