@echo off

:: backup registry
REG DELETE "HKEY_CURRENT_USER\Software\msec.it\Dukto_backup" /f
REG COPY "HKEY_CURRENT_USER\Software\msec.it\Dukto" "HKEY_CURRENT_USER\Software\msec.it\Dukto_backup" /s /f
REG DELETE "HKEY_CURRENT_USER\Software\msec.it\Dukto" /f

:: restore registry
REGEDIT /S "%~dp0settings.reg"