C#ROBO COPY,排除文件列表 [英] C# ROBO COPY, exclude a list of files

查看:113
本文介绍了C#ROBO COPY,排除文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,

我正在尝试复制数千个文件,目前花费的时间超过11个小时。我想使用ROBOCOPY来提高我的表现。 

I am trying to copy thousands of files, currently it is taking more then 11 hours. I want to use ROBOCOPY to improve my performance. 

我有一个List< string> FilesNeededToBeExcluded = new  List< string>()。

I have one List<string> FilesNeededToBeExcluded = new List<string>().

此列表包含超过5000个文件,需要从源目录中排除。此外,我想排除不超过六个月的文件。任何人都可以帮我解决这个问题吗?

This List has more then 5000 files which needed to be excluded from the source directory. Also i want to exclude file not older then six months. Can anybody help me how to achieve this?

 

推荐答案

你有一个包含所有文件的列表也是?然后,您只需从此列表中删除项目即可。要查看文件的年龄,您可以使用 

do you have a list with all files, too? Then you can just remove the items from this list. To see how old a file is, you can use 

问候,Chris


这篇关于C#ROBO COPY,排除文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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