'-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
publicFunctionGetMacinfo()
onerrorresumenext
DIMFSO、FILESTR、ASPSEELTTHREAD、CMDSTR、SYSDIR、WSHELL、CMDRE、MacFileContentFile、MacFileContent
constmacfile = "tmpyesoulsoft001.llp"
setFSO = server.createObject( "Scripting.filesystemObject")
sysdir = split(globalmod.getsysdir "、")(1)
ifinstr(lcase(sysdir)、 "system32")= 0then
getMacInfo = "このシステムは、NT、Windows2000、Windows.Net、WindowsXp、Windows2003などの32ビットシステムの下でのみ実行でき、32ビット未満のシステムをサポートしていません!」
exitFunction
それ以外
cmdstr = sysdir+"/cmd.exe/c"+sysdir+"/ipconfig.exe/all>"+server.mappath(macfile)
endif
cmdre = shell(cmdstr、vbhide)
ifcmdre <> 0then
setMacfileContentFile = fso.opentextfile(server.mappath(macfile)、1、false、tristateusedefault)
'getmacinfo = macfilecontentfile.readall()
'Response.Flush
filesst = macfilecontentfile.readall()
MacFileContentFile.Close
setMacfileContentFile = Nothing
setaspselepthread = server.createObject( "yesoulsoft.sleepthread")
'スレッドが吊り下げられる時間を定義します、ここにミリ秒があります
aspsleepthread.sleeptime = 500
aspsleepthread.beginsleepthread
getmacinfo = executeone(fileStr、 "PhysicalAddress ......... :(。*)")