1、新建一个 txt文件
2、把下面代码 复制到 新建txt文档里面@echo of酆璁冻嘌ffor /f "delims=" 鬈熵痼霄%%a in ('dir /a-d /s /b ') do (if /i not "%%~xa"==".jpg" (if /i not "%%~xa"==".png" (if /i not "%%~xa"==".pdf" (if /i not "%%~xa"==".txt" (if /i not "%%~xa"==".bat" del "%%a")))))echo 主人 删除成功!当前文件夹下 只保留了 jpg png txt pdf bat 类型文件echo 我的扣扣 1083984610 pause
3、保存为 另存为 "新建文本文档.bat"
4、把"新建文本文档.bat" 文件复制 你要处理的文件里面双击 打开 回车 2次 搞定 嫌麻烦 直接去下载"新建文眺螗熨膣本文档.bat"地址 http://pan.baidu.com/s/1qW5EXx6