1
0

unpack.cmd 493 B

12345678910111213141516
  1. set MPT_GET_DESTDIR="%~1"
  2. set MPT_GET_FILE="%~2"
  3. set MPT_GET_SUBDIR="%~3"
  4. echo %MPT_GET_DESTDIR%
  5. if exist %MPT_GET_DESTDIR% rmdir /S /Q %MPT_GET_DESTDIR%
  6. if "%~3" == "." (
  7. build\tools\7zip\7z.exe x -y -o%MPT_GET_DESTDIR% "%~2" || exit /B 1
  8. )
  9. if not "%~3" == "." (
  10. if exist "%~1.tmp" rmdir /S /Q "%~1.tmp"
  11. build\tools\7zip\7z.exe x -y -o"%~1.tmp" -ir!"%~3" "%~2" || exit /B 1
  12. choice /C y /N /T 1 /D y
  13. move /Y "%~1.tmp\%~3" %MPT_GET_DESTDIR% || exit /B 1
  14. rmdir /S /Q "%~1.tmp"
  15. )
  16. exit /B 0