@Echo Off
Set WD=%~1
Set BIN=BIN

If Not Exist "%BIN%\Iconv.exe" (
   Echo  㦥 䠩  %~1!
   Echo.
   Echo 믮 ࢠ
   pause
   GoTo :EOF
)

::     Log-
If Exist Temp\Log\Before (Set Before=Temp\Log\Before) Else Set Before=Z-Del_Files\Before
If %Before%==Temp\Log\Before If Exist Z-Del_Files\Before RD /S /Q Z-Del_Files
If %Before%==Z-Del_Files\Before (
   If Exist Z-Del_Files\Addons RD /S /Q Z-Del_Files\Addons
   If Exist Z-Del_Files\After RD /S /Q Z-Del_Files\After
)
If Not Exist %Before% MD %Before%

::      Log-   Files_UTF  Files_ANSI
If Exist "%~1\_Settings\Files_ANSI" (For /F "UseBackQ Delims=" %%I In (%~1\_Settings\Files_ANSI) Do Call :CopyFiles %%~I)
If Exist "%~1\_Settings\Files_UTF" (For /F "UseBackQ Delims=" %%I In (%~1\_Settings\Files_UTF) Do Call :CopyFiles %%~I)
GoTo :EOF


:CopyFiles
::  
Set I=%~1
If "%I%"=="RUSUPPCK.INF" (
   If Not Exist %Before%\%I:~0,-1%? Copy /Y Files\ForceCopy\%I:~0,-1%? %Before%\>nul
   ) Else (
   If Not Exist %Before%\%I:~0,-1%? Copy /Y "%I386%\%I:~0,-1%?" %Before%\>nul
)
Goto :EOF
