ECHO Zipping all pairs from your PDFCOMPARE folder... SET COMPAREZIPS="dir /b "%%i*.pdf" | find /c "%%%DRIVE%\PDFCompareApp\7-ZIP\7z a %DRIVE%\PDFCompareApp\PDFCOMPARE\%%i.zip %DRIVE%\PDFCompare
A_LoopFileName% ;save the file names to var
PdfCompare:=Trim(PdfName,".pdf") ;remove the files .ext
If JpgCompare = %PdfCompare% ;if there are matching