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.

37 lines
1.6 KiB

  1. @echo off
  2. set NOPRINT="%1"
  3. if "%1" == "" set NOPRINT=/r
  4. md e:\tst1 > NUL
  5. md e:\tst1\dir1 > NUL
  6. md e:\tst1\dir2 > NUL
  7. echo . > e:\tst1\dir1\a1.dat
  8. echo . > e:\tst1\dir2\a2.dat
  9. cacls e:\tst1\*.* /tree /grant everyone:C users:R > NUL
  10. if errorlevel 1 echo ERROR - command 1 failed
  11. veracl e:\tst1\dir1 %NOPRINT% everyone (OI)(CI)C BUILTIN\users (OI)(CI)R > NUL
  12. if errorlevel 1 echo ERROR - command 2 verification failed
  13. veracl e:\tst1\dir2 %NOPRINT% everyone (OI)(CI)C BUILTIN\users (OI)(CI)R > NUL
  14. if errorlevel 1 echo ERROR - command 3 verification failed
  15. veracl e:\tst1\dir1\a1.dat %NOPRINT% everyone C BUILTIN\users R > NUL
  16. if errorlevel 1 echo ERROR - command 4 verification failed
  17. veracl e:\tst1\dir2\a2.dat %NOPRINT% everyone C BUILTIN\users R > NUL
  18. if errorlevel 1 echo ERROR - command 5 verification failed
  19. cacls e:\tst1\*.dat /tree /edit /grant users:F > NUL
  20. if errorlevel 1 echo ERROR - command 6 failed
  21. veracl e:\tst1\dir1 %NOPRINT% everyone (OI)(CI)C BUILTIN\users (OI)(CI)R > NUL
  22. if errorlevel 1 echo ERROR - command 7 verification failed
  23. veracl e:\tst1\dir2 %NOPRINT% everyone (OI)(CI)C BUILTIN\users (OI)(CI)R > NUL
  24. if errorlevel 1 echo ERROR - command 8 verification failed
  25. veracl e:\tst1\dir1\a1.dat %NOPRINT% everyone C BUILTIN\users F > NUL
  26. if errorlevel 1 echo ERROR - command 9 verification failed
  27. veracl e:\tst1\dir2\a2.dat %NOPRINT% everyone C BUILTIN\users F > NUL
  28. if errorlevel 1 echo ERROR - command 10 verification failed
  29. del e:\tst1\dir1\a1.dat
  30. del e:\tst1\dir2\a2.dat
  31. rd e:\tst1\dir1
  32. rd e:\tst1\dir2
  33. rd e:\tst1