标签:批处理 代码 tin for div delete let pat ted
@echo off @echo deleting... FORFILES /p "D:\a" /D -1 /C "cmd /c echo deleting @file ... && IF @isdir == TRUE (rd /S /Q @path) else (del /f @path)" FORFILES /p "D:\b" /D -1 /C "cmd /c echo deleting @file ... && IF @isdir == TRUE (rd /S /Q @path) else (del /f @path)" @echo deleted
示例代码删除D:\a和D\:b目录1天前的文件和文件夹。保存成bat文件,加入任务计划程序定时执行
标签:批处理 代码 tin for div delete let pat ted
原文地址:https://www.cnblogs.com/betterlife/p/11156698.html