CODE: [Copy to clipboard]@echo off echo.1314>b.txt fc a.txt b.txt ::相同时返回码为0,不同大于1 if errorlevel 1 goto :skip goto :other :skip