摘要:
config.txt文件内容[Common]ITEM1=ITEM1ITEM2=ITEM2ITEM3=ITEM3bat文件内容@echo offCALL :readconfig ITEM1 ITEM1_VALUE @ECHO %ITEM1_VALUE%pause:readconfig for /f "skip=1 tokens=1,2 delims==" %%a IN (config.txt) Do if %1==%%a set %2=%%b & @echo read config get %%a, value is %%b goto :eof//说明for /f & 阅读全文