unpack_microsoft_directx_sdk_2010.cmd 930 B

1234567891011121314151617181920212223242526272829303132333435
  1. @if not exist "c:\Program Files\7-Zip\7z.exe" goto missing7-Zip
  2. SET PATH=c:\Program Files\7-Zip\;%PATH%
  3. SET DIRECTXFILENAME=microsoft_directx_sdk_2010.7z
  4. SET DIRECTXFOLDER=microsoft_directx_sdk_2010
  5. @echo ************************************
  6. @echo * Unpack Microsoft DirectX SDK (June 2010) (%DIRECTXFILENAME%)
  7. @echo ************************************
  8. @if exist ..\%DIRECTXFOLDER% goto existdirectx
  9. call 7z.exe x -y %DIRECTXFILENAME% -o../../../external_dependencies/
  10. @pause
  11. goto :exit
  12. :missing7-Zip
  13. @echo 7-Zip archive tool not detected.
  14. @pause
  15. @exit
  16. goto :eof
  17. :existdirectx
  18. @echo Microsoft DirectX SDK (June 2010) folder already exists. Unpack operation is aborted.
  19. @pause
  20. @exit
  21. goto :eof
  22. ::-----------------------------------------------------------------------------
  23. :: EXIT
  24. ::-----------------------------------------------------------------------------
  25. :exit
  26. endlocal & exit /b %rc%