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.

28 lines
881 B

  1. @echo off
  2. if "%1"=="" goto error_miss
  3. if "%2"=="" goto error_miss
  4. rem delete existing answer files
  5. for %%i in (%tu_list%) do if exist %%i.txt del /Q %%i.txt
  6. rem copy templates first
  7. for %%i in (%tu_list%) do if not %%i_skip==1 copy /Y %%i.tpl %%i.txt
  8. set tu_need_ca_name=tuallcfg tudef tusub
  9. set tu_need_key_name=turekey turekc tureall
  10. set tu_need_parent=tusub
  11. set tu_need_another_ca=tuclt
  12. for %%i in (%tu_need_ca_name%) do if not %%i_skip==1 echo Name=%1 >>%%i.txt
  13. for %%i in (%tu_need_key_name%) do if not %%i_skip==1 echo ExistingKey=%1 >>%%i.txt
  14. for %%i in (%tu_need_parent%) do if not %%i_skip==1 echo ParentCAMachine=%2 >>%%i.txt
  15. for %%i in (%CAMachine%) do echo if not %%i_skip==1 CAMachine=%2 >>%%i.txt
  16. goto end
  17. :error_miss
  18. echo.missing parameters
  19. :end
  20. set tu_need_ca_name=
  21. set tu_need_key_name=
  22. set tu_need_parent=
  23. set tu_need_another_ca=