anchor.diff:  	for /f "tokens=1" %%a in ('findstr /e /i /c:".gif" "%%~b*" 2^>nul ^| find /i /c ".gif" 2^>nul') do (
   		set /a "TotalNumErrGIF+=%%a"
   	)
  -)
  -for %%a in ("%filelisterr%1") do if %%~za gtr 0 (
  -	echo.
  -	echo.                         Images are already optimized
  -	echo.%spacebar%
  -	type %filelisterr%1
  -	echo.%spacebar%
   )
   set "isfirst="
   for %%a in ("%filelisterr%2*") do if %%~za gtr 0 (
  
positive.code: set "TotalSize%~1=0"
  set "ImageSize%~1=0"
  set /a "change%~1=(!SImageSize%~1!-!STotalSize%~1!)" 2>nul
  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
  exit /b
  
  ::%1 - JPG|PNG|GIF
  :totalmsg
  if %~2 equ 0 exit /b
  set /a "opt=!TotalNum%~1!-!TotalNumNOpt%~1!-!TotalNumErr%~1!"
  if %opt% equ 0 exit /b
  if not defined isfirst (
  	echo.
  
negative.code: set "fn="
  call:cropfilename fn "%~1" %TFN%
  set "origsize=%~2"
  set "optsize=%~3"
  set "change=%~4"
  call:prepsize origsize
  set "origsize=          %origsize%"
  call:prepsize optsize
  set "optsize=          %optsize%"
  call:prepsize change
  set "change=           %change%"
  set "percent=          %~5%%"
  echo. !fn:~,%TFN%!^|%origsize:~-11%^|%optsize:~-11%^|%change:~-10%^|%percent:~-10%
  endlocal
  exit /b
  
  ::%1 - variable name
  :prepsize
  set "sign="
  if !%~1! lss 0 (set "sign=-" & set /a "%~1*=-1")
  if !%~1! geq %GB% (call:division %~1 %GB% 100 & set "%~1=%sign%!%~1! GB" & exit /b)
  if !%~1! geq %MB% (call:division %~1 %MB% 100 & set "%~1=%sign%!%~1! MB" & exit /b)
  if !%~1! geq %KB% (call:division %~1 %KB% 100 & set "%~1=%sign%!%~1! KB" & exit /b)
  set "%~1=%sign%!%~1! B"
  exit /b
  
  ::%1 - file name
  