|
- /* 取的MAC address Function
- */
- procedure( getHostID()
- prog( ()
- system("ipconfig /all > ipdata.txt")
- p = axlDMOpenFile("TEMP" "ipdata.txt", "r")
- while(gets(ln, p)
- when(index(ln, "Physical Address")
- hostId = car(last(parseString(ln, ": \n")))
- );end when
- );end while
- axlDMClose(p)
- deleteFile("./ipdata.txt");
- println(hostId)
- ); end prog
- ); end procedure
- ;
- getHostID()
复制代码
|
|