全部
@echo off
for /f "tokens=2 delims==" %%i in (a.ini) do echo %%i
不一定全部,如果只要version值不要section把倒数第三行中间的echo !s! %%j改成 echo %%j
@echo off
setlocal enabledelayedexpansion
set v=soft01 soft03
for %%a in (%v%) do (
for /f "tokens=1* delims=[]=" %%i in (a.ini) do (
if defined s echo !s! %%j&set s=
if "%%i"=="%%a" set s=%%i))
pause