:bof
@echo off
setlocal
:init
set dirDEST=d:\TEST\NEW\
set dirSOURCE=d:\TEST\OLD\
if not exist "%dirDEST%" echo dirDEST not found & goto :EOF
if not exist "%dirSOURCE%" echo dirSOURCE not found & goto :EOF
for /f "delims=" %%a in ('dir /b /a-d "%dirDEST%" 2^>NUL') do if not exist "%dirSOURCE%%%a" echo %%a does not exist in "dirSOURCE"
for /f "delims=" %%a in ('dir /b /a-d "%dirSOURCE%" 2^>NUL') do if not exist "%dirDEST%%%a" echo %%a does not exist in "dirDEST"
:eof
Hiç yorum yok:
Yorum Gönder