anchor.diff:  if not exist "%logfile%%1.%2" exit /b
   set "tmpskip=!typenum%~1%~2!"
   for /f "usebackq skip=%tmpskip% tokens=1-5 delims=;" %%b in ("%logfile%%1.%2") do (
  -	if %%~e equ 0 (
  -		set /a "TotalNumNOpt%~1+=1"
  -		>>"%filelisterr%1" echo. %%~fb
  -	) else  (
  -		call:stepcalc %~1 %%c %%d
  -		call:printfileinfo "%%~b" %%c %%d %%e %%f %~1
  -	)
  +	call:stepcalc %~1 %%c %%d
  +	call:printfileinfo "%%~b" %%c %%d %%e %%f %~1
   	set /a "typenum%~1%~2+=1"
   )
   exit /b
  
positive.code: set "filelisterr=%tmppath%\filerr"
  ::Table size
  set "TFN=31"
  ::restrictions in bytes (default - 100Mb)
  set "BYTECONV=104857600"
  set "KB=1024"
  set /a "MB=KB*KB"
  set /a "GB=MB*KB"
  
  set "thread=" & set "updatecheck=" & set "outdir=" & set "nooutfolder="
  set "jpegtags=" & set "xtreme=" & set "advanced=" & set "pngtags=" & set "giftags="
  
negative.code: set "TotalSize%~1=0"
  set "ImageSize%~1=0"
  set /a "change%~1=(!SImageSize%~1!-!STotalSize%~1!)" 2>nul
  set "step10=!step10%~1!"
  if %step10% equ 1 set "step10="
  if !STotalSize%~1! geq %GB%%step10% (
  	call:division STotalSize%~1 %GB%%step10% 100
  	call:division SImageSize%~1 %GB%%step10% 100
  	call:division change%~1 %GB%%step10% 100
  	set "stepB%~1=GB" & set "%~1=%sign%!var!"
  	exit /b
  )
  
  set /a "perc%~1=!change%~1!*100/!STotalSize%~1!" 2>nul
  set /a "fract=!change%~1!*100%%!STotalSize%~1!*100/!STotalSize%~1!" 2>nul
  set /a "perc%~1=!perc%~1!*100+%fract%" 2>nul
  call:division perc%~1 100 100
  echo.%~0:	!STotalSize%~1!	!SImageSize%~1!	!step%~1!	!step10%~1!	!stepB%~1!
  exit /b
  
  ::%1 - variable name
  ::%2 - JPG|PNG|GIF
  :finprepsize
  setlocal
  set "var=!%~1!"
  set "step10=!step10%~1!"
  if %step10% equ 1 set "step10="
  set "sign="
  if %var% lss 0 (set "sign=-" & set /a "var*=-1")
  if %var% geq %GB%%step10% (
  	call:division %var% %GB%%step10% 100
  	endlocal & set "stepB%~1=GB" & set "%~1=%sign%!var!"
  	exit /b
  )
  if %var% geq %MB%%step10% (
  	call:division %var% %MB%%step10% 100
  	endlocal & set "stepB%~1=MB" & set "%~1=%sign%!var!"
  	exit /b
  )
  call:division %var% %KB%%step10% 100
  endlocal & set "stepB%~1=KB" & set "%~1=%sign%!var!"
  exit /b
  
  ::%1 - JPG|PNG|GIF
  :totalmsg
  if %~2 equ 0 exit /b
  set /a "opt=!TotalNum%~1!-!TotalNumErr%~1!"
  if %opt% equ 0 exit /b
  if not defined isfirst (
  	echo.
  