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.

40 lines
1002 B

  1. REM @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. if DEFINED _echo echo on
  4. if DEFINED verbose echo on
  5. REM ********************************************************************
  6. REM
  7. REM This script creates starts the generation of a catalog
  8. REM cab file.
  9. REM
  10. REM ********************************************************************
  11. REM
  12. REM Params:
  13. REM
  14. REM %1 name of the cab (includes .cab)
  15. REM or the catalog file (does not include .CAT)
  16. REM %2 directory where makefile and DDF or CDF files are located
  17. REM %3 CAB or CAT to distinguish which is being created
  18. REM %4 CAB or CAT destination directory
  19. REM %5 Directory for temporary text files
  20. REM %6 Log file for CAT files
  21. cd /d %2
  22. if /i "%3" == "CAT" (
  23. echo started %1.CAT > %5\%1.txt
  24. makecat -v %2\%1.CDF > %6
  25. REM ntsign %2\%1.CAT
  26. REM copy %2\%1.CAT %4\%1.CAT
  27. REM del /f /q %5\%1.txt
  28. ) else (
  29. echo started %1 > %5\%1.txt
  30. nmake /F makefile %4\%1
  31. del /f /q %5\%1.txt
  32. )
  33. endlocal