【发布时间】:2010-10-12 03:43:54
【问题描述】:
完全重复:
- How to write a batch file to delete the files which are 5 days or older from a folder?
- write a batch file to delete 6 days older files from a folder
- write a batch file to delete 5 daya older files from a folder
- How do I create a batch script that will delete a folder on a scheduled basis?
- write a batch file to remove the folders by date and time wise.
- write a script to delete files from a folder which are 5 days older than current date
我想写一个批处理文件来按时删除文件夹、子文件夹和临时文件。
条件是这样的:
- 我需要从文件夹中删除文件一小时前到当前运行时间。
- 我想从系统中获取当前时间并删除前一小时的文件
- 文件格式是这样的:
<file name> <date> - 时间格式为
dd-mm-yyyy-hh-mm或dd-mm-yy-hh-mm
【问题讨论】:
-
查看 *.com/questions/613803/…> 答案并相应调整。应该不难。
-
它们显然不是“精确的”,因为它们都有不同的标题;)
标签: scripting batch-file