- @echo off
- for /f "tokens=2 delims==" %%i in ('type B.ini ^| findstr IDID=') do set "b=%%i"
- for /f "delims=" %%i in (A.ini) do (
- if "%%i"=="[config3]" ( set "c3=1" ) else (
- if defined c3 if "%%i"=="id=%b%" set "found=1" & goto :done
- if "%%i"=="[config4]" goto :done
- )
- )
- :done
- if defined found echo start "" "1.exe"
- pause&exit
复制代码
|