'-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
publicFunctionGetMacInfo ()
onerrorresumenext
Dimfso, Filest, AspsLeePThread, CMDSTR, Sysdir, WSHSHELL, 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 비트 미만의 시스템을 지원하지 않습니다!"
종료 기능
또 다른
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, TristateOussEfault)
'getMacinfo = macFileContentFile.readall ()
'응답. 플러시
filest = macfilecontentfile.readall ()
MacFileContentFile.Close
setMacFileContentFile = 아무것도
setAspsplekThread = server.createObject ( "yesoulsoft.sleepthread")
'스레드가 매달려있는 시간을 정의하고 여기에 밀리 초입니다.
AspsLeePThread.sleeptime = 500
AspsLeePthread.BeginsLeePThread
getMacinfo = executeOne (filest, "PhysicalAddress ......... : (.*)")