- @echo off
- setlocal enabledelayedexpansion
- set /a b=c=d=0
- for /f "tokens=1,* delims==" %%i in (list.txt) do (
- if "%%i"=="name" (
- set _S=
- if "%%j"=="2" set _S=0
- )
- if "!_S!-%%i-%%j"=="0-a-11112" set _S=!_S!0
- if "!_S!-!%%i!"=="00-0" echo %%i=%%j
- )
- pause
复制代码
|