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.

76 lines
2.5 KiB

  1. @echo off
  2. if "%1"=="" goto help
  3. ::-- find the correct directory
  4. set tmp_source=%1
  5. if exist %tmp_source%\certcarc.asp goto copynow
  6. set tmp_source=%1\dump
  7. ::-- copy the files
  8. :copynow
  9. echo Copying files from %tmp_source% to %SystemRoot%\system32\CertSrv
  10. echo certcarc.asp
  11. copy %tmp_source%\certcarc.asp %SystemRoot%\system32\CertSrv
  12. echo certcert.gif
  13. copy %tmp_source%\certcert.gif %SystemRoot%\system32\CertSrv
  14. echo certckpn.asp
  15. copy %tmp_source%\certckpn.asp %SystemRoot%\system32\CertSrv
  16. echo certdflt.asp
  17. copy %tmp_source%\certdflt.asp %SystemRoot%\system32\CertSrv
  18. echo certfnsh.asp
  19. copy %tmp_source%\certfnsh.asp %SystemRoot%\system32\CertSrv
  20. echo certrqad.asp
  21. copy %tmp_source%\certrqad.asp %SystemRoot%\system32\CertSrv
  22. echo certrqbi.asp
  23. copy %tmp_source%\certrqbi.asp %SystemRoot%\system32\CertSrv
  24. echo certrqma.asp
  25. copy %tmp_source%\certrqma.asp %SystemRoot%\system32\CertSrv
  26. echo certrqtp.inc
  27. copy %tmp_source%\certrqtp.inc %SystemRoot%\system32\CertSrv
  28. echo certrqus.asp
  29. copy %tmp_source%\certrqus.asp %SystemRoot%\system32\CertSrv
  30. echo certrqxt.asp
  31. copy %tmp_source%\certrqxt.asp %SystemRoot%\system32\CertSrv
  32. echo certrser.asp
  33. copy %tmp_source%\certrser.asp %SystemRoot%\system32\CertSrv
  34. echo certrsis.asp
  35. copy %tmp_source%\certrsis.asp %SystemRoot%\system32\CertSrv
  36. echo certrsob.asp
  37. copy %tmp_source%\certrsob.asp %SystemRoot%\system32\CertSrv
  38. echo certrspn.asp
  39. copy %tmp_source%\certrspn.asp %SystemRoot%\system32\CertSrv
  40. echo certsgcl.inc
  41. copy %tmp_source%\certsgcl.inc %SystemRoot%\system32\CertSrv
  42. echo certsrck.inc
  43. copy %tmp_source%\certsrck.inc %SystemRoot%\system32\CertSrv
  44. echo certrsdn.asp
  45. copy %tmp_source%\certrsdn.asp %SystemRoot%\system32\CertSrv
  46. echo certwiz.gif
  47. copy %tmp_source%\certwiz.gif %SystemRoot%\system32\CertSrv
  48. echo certwizs.gif
  49. copy %tmp_source%\certwizs.gif %SystemRoot%\system32\CertSrv
  50. ::-- change the default page
  51. if exist %SystemRoot%\system32\CertSrv\default.htm goto dodel
  52. goto skipdel
  53. :dodel
  54. echo Deleting old default.htm
  55. del /q %SystemRoot%\system32\CertSrv\default.htm
  56. :skipdel
  57. echo Creating new default.asp
  58. copy %SystemRoot%\system32\CertSrv\certdflt.asp %SystemRoot%\system32\CertSrv\default.asp
  59. echo Done.
  60. goto end
  61. ::------- help ------
  62. :help
  63. echo Usage: cpnewweb.bat {NT release directory}
  64. echo.
  65. echo * Copies the web pages from {NT rel dir} (or {NT rel dir}\dump) to
  66. echo %SystemRoot%\system32\CertSrv.
  67. echo * Deletes default.htm
  68. echo * Copies certdflt.asp to default.asp
  69. :end