mac-adress with python (windows)

Emile van Sebille emile at fenx.com
Wed Apr 10 20:02:18 EDT 2002


Marcus Stojek
> Hi,
> following some links from this and other groups I had to
> fight through pages and pages of C code and loooong
> threads. Then I found the following example in my
> win32com docu:
>
> >>>import pythoncom
> >>>print pythoncom.CreateGuid()
>
> <iid:{ECD43800-4CB9-11D6-ABD9-0050DA4545E7}>
>
> with the last six bytes being the ethernet card ID.
>
> Can anybody tell me if this works for all Window versions?
> (I can only test for Win NT 4 SP6)
>


It doesn't work here on win2k.

>>> pythoncom.CreateGuid()
<iid:{70630B60-CE9D-4405-BDC6-AADC8F89DE0E}>

C:\>ipconfig /all

Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
        Physical Address. . . . . . . . . : 00-20-78-05-4F-92

See
http://groups.google.com/groups?selm=NJ0E4.5818%24V56.23602%40news-serve
r.bigpond.net.au for Mark Hammonds comments and solution on this.

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list