@echo off echo.%~n0: This procedure merges two eXo projects into one following the instructions on youtube: zOFbuOZ-iyw echo. echo Please ensure LaunchBox is NOT running during this process. echo. :VALIDATION ::Check number of parameters if "%~1"=="" goto :EXPLAIN if "%~2"=="" set err=To few parameters given & goto :EXPLAIN if not "%~3"=="" set err=To much parameters given & goto :EXPLAIN ::Check FROM parameter if not exist "%~1\*.*" set err=FROM folder "%~1" does not exist & goto :EXPLAIN set eXoFROM=%~1 ::Check TO parameter if not exist "%~2\*.*" set err=TO folder "%~2" does not exist & goto :EXPLAIN set eXoTO=%~2 ::FROM folder should be different to TO folder if "%eXoFROM%"=="%eXoTO%" set err=FROM "%~1" folder should be different to TO folder "%~2" & goto :EXPLAIN ::Check if both FROM and TO folders are eXo folders for %%f in (%eXoFROM% %eXoTO%) do ( if not exist "%%f\LaunchBox.exe" set err=%%f Not recognized as a eXo project & goto :EXPLAIN ) set err= :MERGE set eXolvl1Folders=eXo Images Manuals Music Videos XML set eXolvl2Folders=Data\Platforms Data\Playlists echo.We are going to move the necessary files and folders from "%eXoFROM%" to "%eXoTO%" echo.After this is done "%eXoFROM%" can be removed from your system, echo.and the games can be played from "%eXoTO%". echo. echo.(please be patient, this procedure can take a looooooooong time) echo.Press any key to continue or press Ctrl+Break to abort pause >nul echo. echo.Moving folders from "%eXoFROM%" to "%eXoTO%": for %%d in (%eXolvl1Folders%) do ( echo. Moving %%d... robocopy "%eXoFROM%\%%d" "%eXoTO%\%%d" /MOVE /E /IM /J /R:100 /W:5 > nul ) echo.Copying files from "%eXoFROM%" to "%eXoTO%": for %%d in (%eXolvl2Folders%) do ( echo. Copying %%d... copy "%eXoFROM%\%%d" "%eXoTO%\%%d" > nul ) echo.Checking Plugins\eXoPlugin.dll: call :GETSIZE %eXoFROM%\Plugins\eXoPlugin.dll %eXoTO%\Plugins\eXoPlugin.dll if %ERRORLEVEL%==2 ( echo. eXo says "Bigger is Better": bigger size, copy! copy %eXoFROM%\Plugins\eXoPlugin.dll %eXoTO%\Plugins\eXoPlugin.dll >nul goto :ENDMERGE ) if %ERRORLEVEL%==1 ( echo. eXo says "Bigger is Better": equal size, no copy goto :ENDMERGE ) echo. eXo says "Bigger is Better": smaller size, no copy :ENDMERGE :9x if exist %eXoTO%\XML\merge_9xall.bat goto MERGE9X :RETURN echo. echo.Merge complete! echo. echo.Now start %eXoTO%, give it a minute or so and close it. echo.Then wait a few moments and start %eXoTO% again. Now it will contain the %eXoFROM% content! echo. echo.You may want to manually configure %eXoTO% to let %eXoTO% show up under Computers. echo.Happy gaming with "%eXoTO%"! pause goto :END :GETSIZE echo. size FROM Plugins\eXoPlugin.dll: %~z1 echo. size TO Plugins\eXoPlugin.dll: %~z2 if %~z1 GTR %~z2 set rc=2 if %~z1 EQU %~z2 set rc=1 if %~z1 LSS %~z2 set rc=0 echo.getsize: %rc% exit /B %rc% :EXPLAIN echo.Parameters: [FROM folder] [TO folder] echo. FROM: existing eXo folder echo. TO: existing eXo folder echo. echo. i.e. %~n0 "d:\eXoWin3x" "d:\eXoDOS" echo. if not "%err%"=="" echo. ==^> %err% pause goto :END :MERGE9x echo MERGE SET RETURNCD=%CD% cd %eXoTO% cd xml call merge_9xall cd.. copy /Y ".\xml\Windows 9x.xml" ".\data\platforms\Windows 9x.xml" cd %RETURNCD% goto RETURN :END