如何在Delphi XE中监控文件目录? [英] How to monitoring directory for files in Delphi XE?
本文介绍了如何在Delphi XE中监控文件目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
文件更新后的Delphi通知
需要监视创建文件并对其进行计数。
操作系统:WinXP和高。
Need monitoring for create files and count them. OS: WinXP and high.
推荐答案
你可能想看看本文(用于Delphi的目录监视器类),以及来自Windows API的此功能: ReadDirectoryChanges
You may want to take a look at this article (A Directory Monitor Class For Delphi), and also at this function from Windows API: ReadDirectoryChanges
您还应该看看这个SO问题,因为它可以满足您的需要:文件更新时的Delphi通知
You should also take a look at this SO question since it may suit your needs: Delphi notification when a file gets updated
这篇关于如何在Delphi XE中监控文件目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文