- 帖子
- 3
- 积分
- 15
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2024-1-22
|
for /f "skip=1tokens=1*" %%i in ('wmic Nic where "Manufacturer<>'Microsoft' and NetConnectionStatus='2'" get Index^,NetConnectionID^') do (
for /f "tokens=1* delims=:" %%j in ("%%j") do (
set $%%i=%%j
……)……)
1、这里的set $%%i=%%j为什么有个$
2、我测试了下,好像%%i的值也没有改变,这里set $%%i=%%j的意义是什么 |
|