@ECHO OFF
for /f "tokens=12" %%M in ('ipconfig/all ^| find /i "Physical Address"') do set MAC=%%M
ECHO %MAC%
PAUSE
If I have dual NICs, or even more, how can I display them~~? I don't know batch files very well /``~~ Please give me a hand~~ Thanks
for /f "tokens=12" %%M in ('ipconfig/all ^| find /i "Physical Address"') do set MAC=%%M
ECHO %MAC%
PAUSE
If I have dual NICs, or even more, how can I display them~~? I don't know batch files very well /``~~ Please give me a hand~~ Thanks
