forfiles.exe /p D:\mysql-back /s /m * /d -30 /c "cmd /c del /q @path" #清理目录下创建大于30天所有类型的文件 转载于:https://www.cnblogs.com/37yan/p/6923012.html