del命令实现全盘删除指定文件
@echo off Rem :全盘删除指定文件 set "fileName=Normal.dotm" set "outPutPath=C:\result.txt" echo. > %outPutPath% echo 正在删除 for %%i in (C D E F G H I J K L M N O P Q R $ T U V W X Y Z) do ( rem del /s /q %fileName% > %outPutPath% ) echo 删除完毕,结果已输出到 %outPutPath% pause