Just to round out the thread:
#! Perl -w use strict; open (READ, "ipconfig /all|") or die "$!"; while (<READ>) { chomp; if (/Physical Address/) { my @pieces = split(/:/); print $pieces[1]; } } close READ;
In reply to Re: Re: Re: Re: Accessing NIC/mac address ?
by earthboundmisfit
in thread Accessing NIC/mac address ?
by peterg22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |