指定フォルダ配下のすべてのファイルの整合性レベル低を調べるバッチファイル
ILshowALL.cmd フォルダ
ILshowALL.cmd
@echo off
for /r %1 %%1 in (*) do (
set x=
for /f "delims=" %%i in ('icacls "%%~1"') do (
for /f "tokens=1,3 delims=\: " %%j in ("%%i") do (
if "%%j"=="Mandatory" (
set x=%%k
call echo;%%x:~0,6%% %%~nx1
)
)
)
if not defined x echo;Med %%~nx1
)
整合性レベル低でないものだけをリストするには、
rem call echo;%%x:~0,6%% %%~nx1
に変える。
« ファイルが整合性レベル低か調べるバッチファイル | トップページ | 指定フォルダ配下のすべてのフォルダの整合性レベル低を調べるバッチファイル »