我有以下代码:
for /f "tokens=1 delims=," %%i in (%T1R%.orignal) do (
set LINE="%%i"
set LINE1=%LINE%
echo %LINE1% >> %T1R%
)
产生以下内容:
...
set LINE=" <Reference Include="Elmah">"
set LINE1=
echo 1>>C:\Temp\sync-msbuild-1R.txt
...
我看过其他类似的问题,看来这应该可行,但它不在我的系统上。