Bat 获取本地代码的Svn Revision并保存到变量

echo off & color 0A
for /f "usebackq delims=" %%i in (`"svn info Server | findstr "Rev""`) do set Reversion=%%i
echo %Reversion%
pause

输出:

Last Changed Rev: 33923

 

posted @ 2018-02-11 13:01  你好阿汤哥  Views(1340)  Comments(0Edit  收藏  举报