title Region Editor Uninstaller
@echo off
mode 45, 15
Taskkill /F /IM WoTRegionEditor.exe
cls
echo Remove Region Editor and Restore Backups?
pause
cls
xcopy "region_editor\docs\backup\res" "res" /S /Y /F /I
cls
del "region_editor"  /s /q
rmdir "region_editor" /s /q
del "lua5.1.dll"  /s /q
del "lua51.dll"  /s /q
del "WoTRegionEditor.cdd" /s /q
del "WoTRegionEditor.exe" /s /q
call :deleteSelf&exit /b
:deleteSelf
start /b "" cmd /c del "%~f0"&exit /b
cls
exit