<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Computer unique id</title></head><body>
<div>I've encountered an unexpected problem with the following:</div>
<div><br></div>
<div> switch (the platform)</div>
<div> case "Win32"</div>
<div> put (there is a file
(specialFolderPath("system") &
"/IPCONFIG.EXE")) into winExists<br>
put (there is a file
(specialFolderPath("system") &
"/SYSTEM32/IPCONFIG.EXE")) into sys32Exists<br>
if winExists or sys32Exists then<br>
set the hideConsoleWindows to true<br>
put shell("ipconfig /all")
into temp</div>
<div> get matchText(temp,"Physical
Address[\. ]*: ([A-Z0-9-]*)",addy)</div>
<div> else</div>
<div> return "Default"<br>
end if</div>
<div> break</div>
<div> end switch</div>
<div> return addy</div>
<div><br></div>
<div>I've got a fellow who, if he is connected to the internet, this
will return his MAC address. However, if he logs off the
internet, this returns empty.</div>
<div><br></div>
<div>Any clues?</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div>Mac and Windows shareware games<br>
http://www.gypsyware.com</div>
</body>
</html>