Pegasus
Wed Apr 30 09:11:36 PDT 2008
Thanks for the feedback.
I see no reason why you should get more than one
process. I suspect you caused this yourself, by
calling your batch file "fileacl.bat". This would be
a very bad idea.
<ryanlsanders@gmail.com> wrote in message
news:18d744c4-8e3c-4e08-8804-28718897d191@24g2000hsh.googlegroups.com...
> Thank you! Thank you! Thank you! Thank you!
>
>
>
> On Apr 29, 5:36 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>> <ryanlsand...@gmail.com> wrote in message
>>
>> news:2a5dbc2e-65c4-4543-b80e-429d0025e0ce@p25g2000hsf.googlegroups.com...
>>
>> >I need to pull a listing of all folders on a file server that has the
>> > "Allow inheritable permissions from parent to propagate to this
>> > object" check box cleared.
>>
>> > Does anyone have any suggestions?
>>
>> > Thanks!
>>
>> Try this batch file:
>> 01. @echo off
>> 02. set Target=D:\User Files
>> 03. set LogFile=c:\NoInherit.txt
>> 04. rem Requires fileacl.exe, downloadable from
>> 05.
>> rem
http://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f...
>> 06.
>> 07. echo Inheritance checked on %date% at %time% > "%LogFile%"
>> 08. echo ==================================================== >>
>> "%LogFile%"
>> 09. echo.
>> 10. echo Compiling the folder list . . .
>> 11. dir /ad /b /s "%Target%" > "%temp%\dir.txt"
>> 12. echo The following folders do not have inheritance set: >>
>> "%LogFile%"
>> 13. for /F "delims=" %%a in ('type "%temp%\dir.txt"') do call :Sub %%a
>> 14. notepad "%LogFile%"
>> 15. goto :eof
>> 16.
>> 17. :Sub
>> 18. echo Checking "%*"
>> 19. fileacl.exe "%*" /raw | find /i "[I]" > nul || echo %* >> "%LogFile%"
>