REM ###########  Set here target directory ################

set "destlib=I:\My Documents\TwoNavData\Data"

REM #########################################################

set homelib=%cd%
md New
md b_out
md Archive
copy *.twl %homelib%\new /Y
copy *.twl %homelib%\archive /Y
cd %homelib%\tools
twltool.exe -twltocompe -comperte %homelib%\new
UTFCast.exe /i:%homelib%\new /o:%homelib%\b_out /s /e
copy %homelib%\b_out\*.rte %destlib% /Y
copy %destlib%\*.rte %homelib%\archive /Y

REM ## houskeeping ##
del %homelib%\*.twl /Q
rmdir %homelib%\new /S /Q
rmdir %homelib%\b_out /S /Q



