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.

30 lines
831 B

  1. @echo off
  2. setlocal enabledelayedexpansion
  3. REM Apply permisions to sources shares for all main build lab machines
  4. if exist %tmp%\buildsecure.log del /f %tmp%\buildsecure.log
  5. for /f "tokens=1,3 delims=," %%a in (%RazzleToolPath%\buildmachines.txt) do (
  6. if /i "%%b" == "main" (
  7. for %%b in (sources idx01 idx02) do (
  8. rmtshare \\%%a\%%b /remove everyone
  9. rmtshare \\%%a\%%b /grant ntdev\rw_sd:r
  10. rmtshare \\%%a\%%b /grant ntdev\ro_sd:r
  11. rmtshare \\%%a\%%b>>%tmp%\buildsecure.log
  12. )
  13. )
  14. if /i "%%b" == "beta1" (
  15. for %%b in (sources idx01 idx02) do (
  16. rmtshare \\%%a\%%b /remove everyone
  17. rmtshare \\%%a\%%b /grant ntdev\rw_sd:r
  18. rmtshare \\%%a\%%b /grant ntdev\ro_sd:r
  19. rmtshare \\%%a\%%b>>%tmp%\buildsecure.log
  20. )
  21. )
  22. )
  23. endlocal