@echo off

MKDIR "%~dp0Color quantizer"
XCOPY "%AppData%\Color quantizer\options.ini" "%~dp0Color quantizer" /S /E /Y
RMDIR "%AppData%\Color quantizer" /S /Q
MOVE "%AppData%\Color quantizer_backup" "%AppData%\Color quantizer"

:: remove Color quantizer directory if empty
RMDIR "%AppData%\Color quantizer" /Q