@echo off

:: save registry
REGEDIT /S /E "%~dp0settings.reg" "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk"

:: cleanup registry
REG DELETE "HKEY_CURRENT_USER\Software\Elias Fotinis\OverDisk" /f

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

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