From: "ara.t.howard" Date: 2007-07-03T23:25:24+09:00 Subject: mac addr determination can someone run this on windows and let me know if it works? def mac_address return @mac_address if defined? @mac_address re = %r/[^:\-](?:[0-9A-Za-z][0-9A-Za-z][:\-]){5}[0-9A-Za-z] [0-9A-Za-z][^:\-]/o lines = begin IO.popen('ifconfig'){|fd| fd.readlines} rescue IO.popen('ipconfig /all'){|fd| fd.readlines} end candidates = lines.select{|line| line =~ re} @mac_address = candidates.first[re].strip end thanks! -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama