If you are in need of a quick method for retrieving the MAC address of a 3Com card, 3Com has a nice utility that you can download ftp://ftp.3com.com/pub/nic/cardfind.exe
Once you expand the contents, you will find 3link-id.execode:
break on
cls
$script = 'mac.kix'
AT(5,5) $script
$3Comfile = 'c:\demerge\3link-id.txt'
shell '%comspec% /c c:\demerge\3link-id.exe > $3Comfile'
:unomas
If Exist('$3Comfile')
Gosub '3ComID'
Gosub 'MacID'
Else
sleep(1)
goto 'unomas'
EndIf
exit;3Com adapter(s) and configuration detected:
:3ComID
$nul = open(1,$3Comfile)
While $strcount < 8
$string = ReadLine(1)
$strcount = $strcount + 1
loop
$nul = close(1)
$filename = '$NetWareUsername.ini'
$section = 'Computer'
$key = 'NIC'
$nul = WriteProfileString($filename, $section, $key, $string)
return
;Ethernet address:
:MacID
Shell '%comspec% /c type $3Comfile | Find "Ethernet address" > $3Comfile'
:duomas
If Exist('$3Comfile')
$nul = open(1,$3Comfile)
$line = ReadLine(1)
$line = RTrim(LTrim($line))
$macadd = Substr($line,19,12)
$nul = close(1)
Else
sleep(1)
goto 'duomas'
EndIf
return