- @echo off & setlocal enabledelayedexpansion
-
- for /f "skip=1 tokens=1,2 delims= " %%i in (apprevision.txt) do (
- if exist "%%i\" (
- for /f "delims=" %%a in ('dir /ad /b') do (
- set dirname=%%a
- if "!dirname!"=="%%i" (
- for /f "usebackq delims=" %%m in ("%%a\compile.log") do (
- set /a n+=1
- if !n!==2 (
- for %%r in (%%m) do set revision=%%r
- if "!revision!" neq "%%j" (
- echo;[%%i]版本不符 实际版本为[!revision!]
- )
- )
- )
- set n=
- )
- )
- ) else echo;[%%i]未启用...
- )
-
- pause & exit /b
复制代码
|