Solved bat script to display foldr n subfoldr permissions ONLY

June 9, 2012 at 23:09:01
Specs: Windows XP SP 3
want a bat script to display folder n subfolder permissions ONLY not files permissions and output to a text file.

See More: bat script to display foldr n subfoldr permissions ONLY

Report •

#1
June 10, 2012 at 01:51:58
If permissions means attribs:

:: ===== script starts here ===============
::
:: ash.bat Sun 10-06-2012 15:43:45.71
@echo off & setLocal enableDELAYedeXpansioN

for /f "tokens=* delims= " %%a in ('dir/b/s/ad') do (
attrib /d /s %%a
)

goto :eof

::====== script ends here =================


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
June 12, 2012 at 08:13:50
✔ Best Answer
Untested
for /f "tokens=*" %%i in (
'dir /s /b /ad'
) do >>acls.txt icacls "%%i"

Tony


Report •
Related Solutions


Ask Question