Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
817 B

  1. @if "%_ECHO%" == "" @echo off
  2. setlocal
  3. pushd bin
  4. if "%2" == "" goto USAGE
  5. set SOURCEDIR=%1
  6. set TARGETEXE=%2
  7. set AUTORUN=%3
  8. if "%AUTORUN%" == "" goto EXTRACT_ONLY
  9. genddf t1.cab %SOURCEDIR% /run %AUTORUN% > %TEMP%\t1.ddf
  10. diamond /f %TEMP%\t1.ddf
  11. makesfx t1.cab %TARGETEXE% /run /stub sfxcab.exe
  12. del t1.cab
  13. del %TEMP%\t1.ddf
  14. goto END
  15. :EXTRACT_ONLY
  16. genddf t2.cab %SOURCEDIR% > %TEMP%\t2.ddf
  17. diamond /f %TEMP%\t2.ddf
  18. makesfx t2.cab %TARGETEXE%
  19. del t2.cab
  20. del %TEMP%\t2.ddf
  21. goto END
  22. :USAGE
  23. echo.
  24. echo bldspcab.cmd sourcedir targetexefile [autorunfilename]
  25. echo.
  26. echo examples:
  27. echo.
  28. echo bldspcab \\ntblds1\sprel\sp3\1.83\i386 d:\nt4sp3.exe update.exe
  29. echo bldspcab \\ntblds1\sprel\sp3\1.83\support\debug\i386\symbols d:\syms.exe
  30. echo.
  31. :END
  32. popd
  33. endlocal