从其他目录更新一个目录 [英] Update one directory from other one
本文介绍了从其他目录更新一个目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的问题。
i有两个文件夹A和B都有相同的结构现在我想从B更新文件夹A如果B有一些新文件或包含更新数据的文件。
所以最后我可以获得包含所有更新文件和文件夹的文件夹A.
任何帮助将不胜感激
Lakhan
解决方案
我建议您查看System.IO命名空间中的FileSystemWatcher类。
C#:使用FileSystem Watcher监视文件或目录的应用程序 [ ^ ]
Here my Problem.
i Have two folder A and B both have same structure now i want to update folder A from B if B has some new files or has file with Update data.
so at last i can get folder A with all updated file and folders.
any help will be appreciated
Lakhan
解决方案
I suggest you to take a look at FileSystemWatcher Class in System.IO namespace.
C#: Application to Watch a File or Directory using FileSystem Watcher[^]
这篇关于从其他目录更新一个目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文