-3

例如我有一个ID.ini和一个Setup.bat

我想"C:\Program Files\myapp""ID.ini"
Install Directory="C:\Program Files\myapp"

我想将该行粘贴"C:\Program Files\myapp"到 .bat

@echo off
echo Install Directory= (paste it here!)
4

1 回答 1

1

尝试这个:

for /f "tokens=1,*delims==" %%i in (id.ini) do if /i "%%i"=="Install Directory" echo(%%j
于 2013-06-09T07:49:37.443 回答