Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for macnt.bat

(view source code of macnt.bat as plain text)

  1. @ECHO OFF
  2. FOR /F %%A IN ('NET CONFIG ^| FIND /V ":" ^| FIND /V "."') DO FOR /F "TOKENS=2,3 DELIMS=()" %%X IN ('NET CONFIG %%A ^| FIND " active "') DO SET MacAddress=%%X
  3. ECHO MacAddress=%MacAddress%
  4.  

page last uploaded: 2016-12-15, 11:20