|
你看看这个行不行:@echo off
setlocal enabledelayedexpansion
pushd %~dp0
if exist Deleted.txt del Deleted.txt
if exist Notfound.txt del Notfound.txt
for /f %%i in (WinSxS-List.txt) do call :del %%i
findstr /I /V /G:Deleted.txt WinSxS-List.txt>Notfound.txt
pause
exit
:del
for /D %%i in (*%1*) do (
echo %%i>>Deleted.txt
rd %%i /Q /S
)
goto :eof
pause
其中 WinSxS-List.txt是你的列表,Deleted.txt是被删除的列表,Notfound.txt是没找到文件夹的列表.
|
|