find 当前离线
少将
@echo off set "keep1=新建 文本文档.txt" set "keep2=新建 Microsoft Excel 工作表.xls" for %%a in (*) do ( if "%%a" neq "%0" ( if "%%a" neq "%keep1%" ( if "%%a" neq "%keep2%" ( del /f /a /q "%%a" ) ) ) )复制代码
TOP