摘要: 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 & 阅读全文
posted @ 2013-04-24 21:06 dfg727 阅读(10966) 评论(0) 推荐(0) 编辑