for /f "tokens=*" %%a in ('ipconfig -all ^| find "Physical Address"') do (
echo %%a
)Using custom tools:for /f "tokens=*" %%a in ('ipconfig -all ^|
find "Physical Address" ^|
head -1 ^| sed "s/^.*: \|-//g"') do (
echo %%a
)for /f "tokens=*" %%a in ('ipconfig -all ^| find "Physical Address"') do (
echo %%a
)Using custom tools:for /f "tokens=*" %%a in ('ipconfig -all ^|
find "Physical Address" ^|
head -1 ^| sed "s/^.*: \|-//g"') do (
echo %%a
)
No comments:
Post a Comment