anchor.diff:  exit /b
   
   :runningcheck
  +title [Waiting] %name%
  +setlocal
   call:runic "%~1"
  -set "lastrunic=%runic%"
  -if defined runic (
  -	title [Waiting] %name% %version%
  -	echo.Another process %name% is running. Waiting for it to shut down.
  -	call:runningcheck2 "%~1"
  -)
  -exit /b
  +if %runic% gtr 0 (
  +	call:clearscreen
  +	echo.%spacebar%
  +	echo. Another process %name% is running.
  +	echo.
  +	echo. Waiting for it to shut down or press any key.
  +	echo.%spacebar%
  +::	call:runningcheck2 "%~1"
  +	call:runic2 "%~1"
  +)
  +endlocal
  +title %name% %version%
  +exit /b 0
   
   :runningcheck2
  -2>nul (3>"%iclock%" 1>&3 call:runic2 "%~1" || (
  -	if exist "%systemroot%\system32\timeout.exe" (1>nul 2>&1 timeout /t 5) else call:waitrandom 5000
  +2>nul (5>"%iclock%" call:runic2 "%~1" || (
  +	call:waitpresskey %errortimewait% || exit /b 1
   	goto:runningcheck2
   ))
  -exit /b
  +exit /b 0
   
   :runic2
  -call:waitrandom 5000
  +call:waitpresskey %errortimewait% || exit /b 0
   call:runic "%~1"
  -if defined runic (
  -	if %runic% lss %lastrunic% exit /b 0
  -	set "lastrunic=%runic%"
  -	goto:runic2
  -)	
  +if %runic% gtr 0 goto:runic2
   exit /b 0
   
   :runic
  -set "runic="
  -for /f "tokens=* delims=" %%a in ('tasklist /fo csv /v /nh ^| find /i /c "%~1" ') do (
  -	if %%a gtr 1 set "runic=%%a"
  +for /f "tokens=* delims=" %%a in ('tasklist /fo csv /v /nh /fi "IMAGENAME eq cmd.exe" ^| find /i /c "%~1" ') do (
  +	set "runic=%%a"
   )
   exit /b
   
  
positive.code: set "sconfig=%scrpath%Tools\"
  set "scripts=%scrpath%Tools\scripts\"
  set "tmppath=%TEMP%\iCatalyst\"
  set "errortimewait=30"
  set "iclock=%TEMP%ic.lck"
  set "LOG=%scrpath%\iCatalyst"
  set "runic="
  call:runic "%name% %version%"
  if defined runic (
  	call:clearscreen
  	title [Waiting] %name% %version%
  	1>&2 echo.%spacebar%
  	1>&2 echo. Attention: running %runic% of %name%.
  	1>&2 echo.
  	1>&2 echo. Press Enter to continue.
  	1>&2 echo.%spacebar%
  	1>nul pause
  	call:clearscreen
  )
  set "LOG=%LOG%%runic%"
  if not defined runic if exist "%tmppath%" 1>nul 2>&1 rd /s /q "%tmppath%"
  set "apps=%~dp0Tools\apps\"
  PATH %apps%;%PATH%
  set "nofile="
  
negative.code: 
  :waitrandom
  setlocal
  if not defined istimeout goto:waitrandom2
  set "ww=%~1"
  if %~1 lss 1000 set "ww=1000"
  set /a "ww=%random%%%(%ww%/1000)"
  1>nul 2>&1 timeout /t %ww%
  endlocal & exit /b
  :waitrandom2
  set /a "ww=%random%%%%1"
  1>nul 2>&1 ping -n 1 -w %ww% 127.255.255.255
  endlocal & exit /b
  
  ::If press key return errorlevel=1. If timeout - errorlevel=0
  :waitpresskey
  setlocal
  set "ww=%~1"
  if defined istimeout (
  	if %ww% lss 1000 set "ww=1000"
  	timeout /t !ww:~,-3! 2>nul | 1>nul 2>&1 findstr /e "0" || (endlocal & exit /b 1)
  ) else call:waitrandom %ww%
  endlocal & exit /b 0
  
  :initsource
  set "isjpeg="
  