我想利用这个for循环和svnlook函数把日志信息读取到LOG变量里,但是这样操作读取的信息只有最后一行的复制代码
- for /f "delims=" %%b in ('svnlook log -r %REV% %REPOS%') do (set LOG=%%LOG%%b
- )
复制代码
- setlocal enabledelayedexpansion
- for /f "delims=" %%b in ('svnlook log -r %REV% %REPOS%') do (
- set "LOG=!LOG! %%b"
- )
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |