Autor Beitrag
mcbain
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.05.11 08:48 
Hallo,

ich würde gerne ein Verzeichnis überwachen. Dies funktioniert auch recht gut bisher. Entweder mit der Jedi-Komponente oder eigens mit
ausblenden Delphi-Quelltext
1:
FindNextChangeNotification					


wird mir mitgeteilt, sobald sich etwas im Verzeichnis ändert. Aber wie ermittle ich nun die Datei, welche geändert, gelöscht, erstellt, etc. wurde?
Es muss doch irgendwie möglich sein, exakt die Datei/Ordner zu ermitteln, ohne das Verzeichnis komplett durchsuchen zu müssen und das Änderungsdatum von jedem Ordner und Datei abzufragen?

Hat das schon jemand mal gemacht? Wäre für jeden Tip dankbar.


Moderiert von user profile iconNarses: Topic aus Dateizugriff verschoben am Mo 16.05.2011 um 09:23
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 16.05.11 08:56 
Steht doch alles in der Doku...
MSDN Dokumentation hat folgendes geschrieben:
To retrieve information about the specific change as part of the notification, use the ReadDirectoryChangesW function. This function also enables you to provide a completion routine.
mcbain Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.05.11 10:12 
Ah, vielen Dank.
Ich werde es mir bei Gelegenheit ansehen.