@echo off set SOURCE=%USERPROFILE%\AppData\Roaming\dotfiles\.config\emacs set DEST=%USERPROFILE%\Appdata\Roaming\.emacs.d if not exist "%SOURCE%" ( echo Source directory does not exist: %SOURCE% exit /b 1 ) if not exist "%DEST%" ( mkdir "%DEST%" ) xcopy "%SOURCE%\*" "%DEST%\" /E /I /Y /H echo Copy completed.