Altova DiffDog Server 2025 

When you compare files in binary mode (that is, when the option --mode=binary), DiffDog Server creates no output report, since listing differences is not meaningful for binary files. In such cases, check the exit code to view the comparison outcome.

 

Exit code

Meaning

0

No differences exist

1

Differences exist

2

An error has occurred

 

For example, the following Windows batch script compares two PDF files in binary mode. The %ERRORLEVEL% environment variable provides the exit code with the comparison outcome.

 

SET DIFFDOGSERVER="C:\Program Files\Altova\DiffDogServer2025\bin\DiffDogServer.exe"

%DIFFDOGSERVER% diff book1.pdf book2.pdf --m=binary
ECHO %ERRORLEVEL%

Windows batch script

On a Linux machine, the equivalent script could look as follows:

 

#!/bin/bash

DIFFDOGSERVER=/opt/Altova/DiffDogServer2025/bin/diffdogserver

${DIFFDOGSERVER} diff book1.pdf book2.pdf --mode=binary

echo $?

Linux shell script

 

© 2018-2024 Altova GmbH