Delphi XE - 文件删除通知事件:
我需要通过客户端操作删除服务器上的物理文件,然后将文件删除事件通知远程数据库 - 希望这完全发生在服务器端。
Delphi 的更高版本公开了许多以前被锁定在 WinAPI 调用中的目录服务。目前我正在使用 Delphi XE,但我还没有掌握所有新功能(从 Delphi 7 迁移...)
Delphi XE 文件/目录服务中是否存在某种我可以抓住的事件服务器端删除文件时,我可以通知感兴趣的各方删除事件吗?
TIA
I need to delete a physical file on a server via a client action, then notify a remote database of the file deletion event - would like this to happen entirely on serverSide.
Later versions of Delphi have exposed a lot of directory services that previously had been locked away in WinAPI calls. Currently I'm using Delphi XE but I'm not up to speed on all the new features (migrated from Delphi 7...)
Is there an event of some kind in the Delphi XE file/directory services that I can grab on the server side when a file is deleted, so I can notify interested parties of the delete event?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,您可以找到一个名为:
IOSys
它包含有很多可以使用文件夹和文件的东西。但其中没有任何通知。
您仍然需要使用该功能: 查找第一个更改通知
AFAIK, you can find a unit called:
IOSys
It contains lots of stuff to play with folders and files. But there's no notification included.
You still need to use the function: FindFirstChangeNotification