站长资源脚本专栏
全盘删除所有文件夹下的_desktop.ini的批处理bat文件
简介复制代码 代码如下:@echo off setlocal enabledelayedexpansion for /f "delims=\" %%i in ('fsutil fsinfo drives^|find /v ""') do ( set var=%%i set drive=!var:~-2!
复制代码 代码如下:
@echo off
setlocal enabledelayedexpansion
for /f "delims=\" %%i in ('fsutil fsinfo drives^|find /v ""') do (
set var=%%i
set drive=!var:~-2!
fsutil fsinfo drivetype !drive!|find "固定">nul && del /a /f /s !drive!\_desktop.ini
)
pause
上一篇:按扩展名分类批处理bat文件