激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務器之家:專注于服務器技術及軟件下載分享
分類導航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務器之家 - 編程語言 - ASP教程 - 使用ASP獲得服務器網卡的MAC地址信息

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

2019-10-26 12:07asp代碼網 ASP教程

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

  1. '----------------------提取所有網卡的信息--------------------'   
  2.  
  3. Public Function GetMacInfo()   
  4.     On Error Resume Next   
  5.  
  6.     Dim fso, FileStr, AspSleepThread, CmdStr, SysDir, wshshell, CmdRe, MacFileContentFile, MacFileContent   
  7.     Const MacFile = "TmpYesoulSoft001.LLP"   
  8.     Set fso = Server.CreateObject("Scripting.FileSystemObject")   
  9.  
  10.     SysDir = Split(GlobalMod.GetSysDir, ",")(1)   
  11.             If InStr(LCase(SysDir), "system32") = 0 Then   
  12.             GetMacInfo = "本系統只能運行在Nt、Windows 2000、Windows.Net、Windows Xp、Windows 2003等32位系統下,不支持32位以下的系統!"   
  13.             Exit Function   
  14.             Else   
  15.             CmdStr = SysDir + "\Cmd.exe /C " + SysDir + "\Ipconfig.exe /All > " + Server.MapPath(MacFile)   
  16.             End If   
  17.         CmdRe = Shell(CmdStr, vbHide)   
  18.         If CmdRe <> 0 Then   
  19.         Set MacFileContentFile = fso.OpenTextFile(Server.MapPath(MacFile), 1, False, TristateUseDefault)   
  20.         'GetMacInfo = MacFileContentFile.ReadAll()   
  21.         'Response.Flush   
  22.         FileStr = MacFileContentFile.ReadAll()   
  23.         MacFileContentFile.Close   
  24.         Set MacFileContentFile = Nothing   
  25.         Set AspSleepThread = Server.CreateObject("YesoulSoft.SleepThread")   
  26.         '定義線程掛起的時間,這里為毫秒   
  27.         AspSleepThread.SleepTime = 500   
  28.         AspSleepThread.BeginSleepThread   
  29.         GetMacInfo = ExecuteOne(FileStr, "Physical Address. . . . . . . . . : (.*)")   
  30.         Set AspSleepThread = Nothing   
  31.         Else   
  32.         GetMacInfo = "系統當前無法獲取您的網絡信息,請檢查權限繼承關系后再運行本系統!"   
  33.         Exit Function   
  34.         End If   
  35.         DelFile MacFile   
  36.  
  37.     Set fso = Nothing   
  38.  
  39. End Function   
  40. '------------------在字符串匹配一次結果-------------------'   
  41. Public Function ExecuteOne(inpStr, PatStr)   
  42.   Dim oRe, oMatch, oMatches   
  43.   Set oRe = New RegExp   
  44.   oRe.Pattern = PatStr   
  45.   inpStr = LCase(inpStr)   
  46.   oRe.IgnoreCase = True   
  47.   Set oMatches = oRe.Execute(inpStr)   
  48.   Set oMatch = oMatches(0)   
  49.   ExecuteOne = oMatch.SubMatches(0)   
  50. End Function 

延伸 · 閱讀

精彩推薦
Weibo Article 1 Weibo Article 2 Weibo Article 3 Weibo Article 4 Weibo Article 5 Weibo Article 6 Weibo Article 7 Weibo Article 8 Weibo Article 9 Weibo Article 10 Weibo Article 11 Weibo Article 12 Weibo Article 13 Weibo Article 14 Weibo Article 15 Weibo Article 16 Weibo Article 17 Weibo Article 18 Weibo Article 19 Weibo Article 20 Weibo Article 21 Weibo Article 22 Weibo Article 23 Weibo Article 24 Weibo Article 25
主站蜘蛛池模板: 2019天天干夜夜操 | 久久99精品久久久久久园产越南 | 免费a级片在线观看 | 成人激情久久 | 国产成人综合在线观看 | 色域tv| 成人午夜在线免费视频 | 久久久久9999| 媚药按摩痉挛w中文字幕 | 黄污网址 | 精品国产乱码久久久久久丨区2区 | 国产成人av免费观看 | 黄色网址入口 | 成人福利视频在线观看 | 中文字幕在线观看网址 | 成人国产精品一区二区毛片在线 | 91精品国产综合久久男男 | 综合日韩av | 日韩视频一区二区在线观看 | 99精品视频网站 | 久草成人在线观看 | 91精品最新国内在线播放 | 中日韩乱码一二新区 | 成人免费在线视频播放 | 久久草在线视频国产 | 成人性爱视频在线观看 | 深夜福利视频免费观看 | 久久亚洲美女视频 | av在线中文 | 亚洲国产精品高潮呻吟久久 | 粉嫩粉嫩一区二区三区在线播放 | 久草视频2 | www深夜成人 | 成年免费视频黄网站在线观看 | 国产精品福利一区 | 久久久久久久久日本理论电影 | 成人青青草| 叉逼视频 | 成人三级电影网址 | 欧洲精品视频在线观看 | 久久国产乱子伦精品 |