stasy9110, например есть две папки "C:\1" и "C:\2"
Код:
@echo off
for /f "tokens=*" %%i in ('dir /b /a-d "C:\1"') do if not exist "C:\2\%%~nxi" echo file C:\2\%%~nxi not exist
for /f "tokens=*" %%i in ('dir /b /a-d "C:\2"') do if not exist "C:\1\%%~nxi" echo file C:\1\%%~nxi not exist