@echo off rem for /f "tokens=*" %i in ('dir /b /s /a-d *.bdl') do s:\unpackbdl.cmd "%i" :##SET VERZ=%~dp1 :##SET FILE=%~nx1 :##SET FILEBASE=%~n1 :##SET EXTENSION=%~x1 :##set OsdBinDir=D:\Programme\CoCreate\OSD_Modeling_14.0.0.xx\binNT\ set OsdBinDir=C:\opt\CoCreate\OSD_Modeling_2006\binNT\ :## SETZEN ob dateiendung .bdl.mi [ja|nein] SET BDLMI=nein SET SETDATE=nein CD /d %~dp1 if exist am_2d_0.mi del /F am_2d_0.mi if exist am_3d_0.pkg del /F am_3d_0.pkg if not exist %OsdBinDir%unzip.exe goto unpack_old :unpack_14xx %OsdBinDir%unzip.exe -qq %~nx1 2>nul: if exist am_2d_0.mi goto f_rename :unpack_old %OsdBinDir%uncompress < %~nx1 | %OsdBinDir%cpio -i >nul: set OsdBinDir= :f_rename IF /I %BDLMI%==ja goto :bdlname if exist %~n1.mi del /F %~n1.mi >nul: if exist %~n1.pkg del /F %~n1.pkg >nul: ren am_2d_0.mi %~n1.mi >nul: ren am_3d_0.pkg %~n1.pkg >nul: goto f_setdate :bdlname if exist %~nx1.mi del /F %~nx1.mi >nul: if exist %~nx1.pkg del /F %~nx1.pkg >nul: ren am_2d_0.mi %~nx1.mi >nul: ren am_3d_0.pkg %~nx1.pkg >nul: :f_setdate IF /I %SETDATE%==nein goto end touch -r %1 %1.mi touch -r %1 %1.pkg :end rem del /F 0 >nul: rem dir %~n1*.* /O:n :end1