level 1
请不要BB
楼主
脚本:
@echo off
color 0a
title HardWare Check
mode con cols=90
sc config winmgmt start= auto >nul 2<&1
net start winmgmt 2>1nul
setlocal ENABLEDELAYEDEXPANSION
set tee=0
for /f "tokens=1,* delims==" %%a in ('wmic NICCONFIG where "index='1'" get ipaddress^,macaddress^,description /value') do (
set /a tee+=1
if "!tee!" == "5" echo %%b
)
rem del /f "%TEMP%\temp.txt" 2>nul
pause
在win10 上运行正常可获取mac地址,

但在windows2008 和 win7上运行 都显示ECHO处于关闭状态

求解
2018年11月28日 06点11分
1
@echo off
color 0a
title HardWare Check
mode con cols=90
sc config winmgmt start= auto >nul 2<&1
net start winmgmt 2>1nul
setlocal ENABLEDELAYEDEXPANSION
set tee=0
for /f "tokens=1,* delims==" %%a in ('wmic NICCONFIG where "index='1'" get ipaddress^,macaddress^,description /value') do (
set /a tee+=1
if "!tee!" == "5" echo %%b
)
rem del /f "%TEMP%\temp.txt" 2>nul
pause
在win10 上运行正常可获取mac地址,

但在windows2008 和 win7上运行 都显示ECHO处于关闭状态
求解