@echo off

:: save registry
REGEDIT /S /E "%~dp0settings.reg" "HKEY_CURRENT_USER\Software\Pablo Software Solutions Beta\FTP Wanderer"

:: cleanup registry
REG DELETE "HKEY_CURRENT_USER\Software\Pablo Software Solutions Beta\FTP Wanderer" /f

REG COPY "HKEY_CURRENT_USER\Software\Pablo Software Solutions Beta\FTP Wanderer_backup" "HKEY_CURRENT_USER\Software\Pablo Software Solutions Beta\FTP Wanderer" /s /f

REG DELETE "HKEY_CURRENT_USER\Software\Pablo Software Solutions Beta\FTP Wanderer_backup" /f