通过Windows批处理脚本从某个文件夹中删除一些旧文件。需要帮忙。 [英] Delete some old files from a folder with some squence by windows batch script. Need help.

查看:47
本文介绍了通过Windows批处理脚本从某个文件夹中删除一些旧文件。需要帮忙。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们的应用服务器中有一个文件夹,里面有数百万个文件。然而,他们都没有使用。我必须根据序列删除文件。序列是每周一次。例如:首先 将删除创建的文件列表 
第一周。 (最古老的一周)。然后它将再次删除在该周之前的新周创建的文件。同样它应该去。


脚本只会保留比当前日期早180天的文件。你可以帮我批量代码吗?



干杯!!!


解决方案

Hello Deepak,


欢迎在MSDN论坛上发帖。


我认为你是在不正确的论坛发帖,这个论坛是讨论在Winform开发中使用的数据控制。我建议您在 https://social.technet上发布新帖子。 microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG  ,
希望那里的专家可以解决您的问题。


问候,


Hi,

There is a folder in our app server where there are millions of files present. However they all are unused. I have to delete the files based on a sequence. The sequence is weekly basis. Ex: firstly  the list of files will be deleted those are created  very first week. (The oldest week). Then again it will delete files created the newer week prior to that week. Likewise it should go.

And script will only keep files those are just 180 days older than the current date. Can you please help me with the batch code ?

Cheers !!!

解决方案

Hello Deepak,

Welcome to post on MSDN forum.

I think you are posting on incorrect forum, this forum is to discuss data control using in Winform development. I would suggest you post a new thread on https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG , hope experts there could solve your issue.

Regards,


这篇关于通过Windows批处理脚本从某个文件夹中删除一些旧文件。需要帮忙。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆