Код:
@echo off
set "InDir=d:\test\d\"
set "log=d:\test\log.txt"
>"%log%" echo "Start"
pushd "%InDir%"
for /f "delims=" %%i in ('dir/a-d/b') do (
"C:\Program Files\7-Zip\7z.exe" t -r "%%i"|>nul find/i "Everything is Ok"&& call:# "%%i" ok|| call:# "%%i" bad
)
popd
pause& exit/b
:#
>>"%log%" xcopy/y "%~1" "..\c\%2\"& goto:eof