@echo off setlocal enabledelayedexpansion set ts=.\ rem tools\ set E=%1 for %%I in (!E!) do (set dc=%%~nxI) set dd=!e:%dc%=PS3_GAME! :: Декриптуем SDAT for /f "tokens=*" %%A in ('dir /b /s /a:-d "!E!\*.*"') do ( set pt=%%A set mn=!pt:%dc%=PS3_GAME! if not exist "!mn:\%%~nxA=!" md "!mn:\%%~nxA=!" make_npdata -d "!pt!" "!mn!" 0 Echo:N|move /-Y "!pt!" "!mn!" ) echo. echo. Creating LIC.DAT: echo. %ts%sfk partcopy %ts%LIC.DAT 0x0 0x900 LIC.hash -yes echo !dc! > %temp%\1.tmp %ts%sfk partcopy %temp%\1.tmp 0x0 0x9 LIC.hash 0x801 -yes %ts%exf -osfv -otf %temp%\2.tmp -crc32 LIC.hash type %temp%\2.tmp | findstr LIC.hash > %temp%\3.tmp set /p str=<%temp%\3.tmp set CRC32=%str:~9,8% echo.%CRC32%>%temp%\4.tmp %ts%sfk filter %temp%\4.tmp +hextobin %temp%\5.tmp %ts%sfk partcopy %temp%\5.tmp 0x0 0x4 LIC.hash 0x20 -yes copy %ts%LIC.DAT !dd!\LICDIR\LIC.DAT /y %ts%sfk partcopy LIC.hash 0x0 0x900 !dd!\LICDIR\LIC.DAT 0x0 -yes del /Y !dd!\LICDIR\LIC.EDAT