All pastes #183709 Raw Edit

Unnamed

public text v1 · immutable
#183709 ·published 2006-09-27 03:51 UTC
rendered paste body
@echo off


::dir for directorynames (probly should replace with a forfiles)
for /f "tokens=*" %%a in ('dir /b ') do call :DOIT %%a
goto :eof

:DOIT
::for each file, we iterate each line of cacls output, and filter only those with Everyone{wildcard}F
for /f "tokens=*" %%a in ('"cacls %1 |findstr /R "Everyone.F""') do echo %1 - %%a
goto :eof