@echo off

:: backup registry
REG DELETE "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk_backup" /f

REG COPY "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk" "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk_backup" /s /f

REG DELETE "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk" /f

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