@echo off

MKDIR "%~dp0Images2PDF"
XCOPY "%AppData%\pdfforge\Images2PDF\Images2PDF.settings" "%~dp0Images2PDF" /S /E /Y
RMDIR "%AppData%\pdfforge\Images2PDF" /S /Q
MOVE "%AppData%\pdfforge\Images2PDF_backup" "%AppData%\pdfforge\Images2PDF"

:: remvoe pdfforge directory if empty
RMDIR "%AppData%\pdfforge" /Q