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