anchor.diff:  	exit /b
   )
   1>nul 2>&1 del /f/q "%paramfile%"
  +set "oparam="
  +
  +call:checkparams %params%
   if "%png%" equ "0" if "%jpeg%" equ "0" if "%gif%" equ "0" goto:endsetcounters
  -call:checkparams %params%
  -set "oparam="
   if /i "%outdir%" equ "false" (set "outdir=" & set "nooutfolder=yes") else if /i "%outdir%" equ "true" set "outdir="
   if not defined nooutfolder if not defined outdir (
   	call:clearscreen
   	title [Loading] %name% %version%
  -	for /f "tokens=* delims=" %%a in ('browsefolder.exe /Title:"Image Catalyst" /Description:"Choose directory to save images to. Click 'Cancel' to replace original images with optimized versions." /block:window /center:window /flag:81') do set "outdir=%%~a"
  +	for /f "tokens=* delims=" %%a in ('browsefolder.exe /CurPath:desktop /Title:"Image Catalyst" /Description:"Choose directory to save images to. Click 'Cancel' to replace original images with optimized versions." /block:window /center:window /flag:81') do set "outdir=%%~a"
   )
   if defined outdir (
   	if "!outdir:~-1!" neq "\" set "outdir=!outdir!\"
   	if not exist "!outdir!" (
   		1>nul 2>&1 md "!outdir!" || (
  -		call:errormsg "Can not create directory for optimized files: !outdir!"
  -		exit /b
  -		)
  -	)
  -	for /f "tokens=* delims=" %%a in ("!outdir!") do set outdirparam="/Outdir:%%~a"
  -) else (
  -	set "outdirparam="
  -)
  +			call:errormsg "Can not create directory for optimized files: !outdir!"
  +			exit /b
  +)))
  +
   title [Loading] %name% %version%
   call:clearscreen
   echo.%spacebar%
  
positive.code: :errormsg
  title [Error] %name% %version%
  if exist "%tmppath%" 1>nul 2>&1 rd /s /q "%tmppath%"
  if "%~1" neq "" 1>&2 echo.%~1
  call:dopause
  exit /b
  
  
negative.code: :endsetcounters
  if %TotalNumPNG% equ 0 if %TotalNumJPG% equ 0 if %TotalNumGIF% equ 0 (
  	call:clearscreen
  	call:errormsg "No images found. Please check input and try again."
  	exit /b
  )
  for /l %%a in (1,1,%thread%) do (
  