anchor.diff:  	set "ImageNum%%a=0"
   	set "TotalNum%%a=0"
   	set "TotalNumErr%%a=0"
  +	set "TotalNumNOpt%%a=0"
   	set "TotalSize%%a=0"
   	set "STotalSize%%a=0"
   	set "ImageSize%%a=0"
   	set "SImageSize%%a=0"
   	set "change%%a=0"
   	set "perc%%a=0"
  -	set "step%%a=10"
  +	set "step%%a=1"
   )
   set "png="
   set "jpeg="
  
positive.code: endlocal & set /a "%~2=%}%"
  exit /b
  
  :echostd
  echo.%~1
  exit /b
  
  :echoerr
  1>&2 echo.%~1
  exit /b
  
  ::%1 - png | jpg | gif
  ::%2 - thread number
  ::%3 - input file
  
negative.code: :saverrorlog
  if exist "%filework%" 1>nul 2>&1 del /f /q "%filework%"
  if "%~2" equ "" exit /b
  >>"%filelisterr%%~2%~3" echo.%~f1
  if %thread% equ 1 (call:printfileerr "%~f1" %~2)
  exit /b
  
  