Source code of Windows XP (NT5)
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.

43 lines
1.1 KiB

  1. @echo off
  2. setlocal enableextensions
  3. if "%1"=="" goto Usage
  4. if "%2"=="" goto Usage
  5. set PATH=E:\BuildTools;C:\Program Files\HTML Help Workshop
  6. set LOG=%2
  7. set stars=********************************************************************************
  8. echo Changing drive to E:... >> %LOG% 2>&1
  9. E: >> %LOG% 2>&1
  10. echo Changing directory to %1\Dev\DMA\Documents\Help... >> %LOG% 2>&1
  11. cd %1\Dev\DMA\Documents\Help >> %LOG% 2>&1
  12. echo %stars% >> %LOG% 2>&1
  13. echo Removing path info from DMA.hhp... >> %LOG% 2>&1
  14. if exist DMA.hhp.bak del /f DMA.hhp.bak >> %LOG% 2>&1
  15. RemovePathFromHHP.pl DMA.hhp >> %LOG% 2>&1
  16. if exist DMA.hhp.bak del /f DMA.hhp.bak >> %LOG% 2>&1
  17. echo Building DMA.chm... >> %LOG% 2>&1
  18. hhc.exe DMA.hhp >> %LOG% 2>&1
  19. echo %stars% >> %LOG% 2>&1
  20. cd ..
  21. echo Processing Word macros...
  22. echo %stars% >> %LOG%
  23. echo Processing Word macros... >> %LOG%
  24. C:\WinNT\System32\attrib -r *.doc >> %LOG% 2>&1
  25. "C:\Program Files\Microsoft Office\Office\WinWord.exe" "Domain Migration Administrator Solution Guide.doc" /mAttachMCSprint
  26. C:\WinNT\System32\attrib +r *.doc >> %LOG% 2>&1
  27. cd ..
  28. goto End
  29. :Usage
  30. echo Usage: "DmaBuildHelp.cmd <Root Directory> <Log File>"
  31. :End
  32. endlocal