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.

31 lines
894 B

  1. @echo off
  2. if "%1"=="" goto error_dir
  3. if "%1"=="." goto error_localdir
  4. if "%1"==".\" goto error_localdir
  5. if not exist %1 goto error_exist
  6. set tu_files=tuallcfg.tpl tudef.tpl turekey.tpl turekc.tpl tureall.tpl tusub.tpl tuclt.tpl tu.bat tubuild.bat tuinst.bat tureq.bat tuuninst.bat uninstal.txt
  7. set tu_miss_file=
  8. for %%i in (%tu_files%) do if not exist %%i set tu_miss_file=%%i
  9. if not "%tu_miss_file%"=="" goto error_not_found
  10. for %%i in (%tu_files%) do copy /Y %%i %1
  11. echo.
  12. goto end
  13. :error_dir
  14. echo.You must define a directory to install tu tool
  15. goto usage
  16. :error_localdir
  17. echo.You must define a non-local directory
  18. goto usage
  19. :error_exist
  20. echo.%1 doesn't exist
  21. goto usage
  22. :error_not_found
  23. echo.%tu_miss_file% is not found. Make sure sync ansrfile directory before install
  24. :usage
  25. echo.Usage: %0 CertsrvReleaseDirectoryPath
  26. :end
  27. set tu_files=
  28. set tu_miss_file=