Article View: borland.public.cppbuilder.nativeapi
Article #6332Monitoring a Directory
From: Josh Kirkpatrick
Date: Tue, 17 May 2005 14:25
Date: Tue, 17 May 2005 14:25
15 lines
1680 bytes
1680 bytes
Hello, all. As stated in the subject, I am interested in monitoring one or more directories (ideally on different machines), as well as any underlying files/subdirectories. While I can use FindFirstChangeNotification...FindNextChangeNotification, I want a detailed report of the change. For example, if a new file is created, I want to know its name, not just its location. Ditto for new folders or file/folder renames/deletes. I've found mention to ReadDirectoryChangeW in Windows API documentation, but I do not understand how to properly implement it in BCB. Is this the route I should go, or is there a better alternative out there? As always, code samples are greatly appreciated. Thanks, ~Josh
Technical Details
Message-ID:
<4289fee5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,381ba19a397b4a0f,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Josh Kirkpatrick" <jkirkpat at speedymail dot org> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Monitoring a Directory Date: Tue, 17 May 2005 10:25:39 -0400 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.0.160.106 Message-ID: <4289fee5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116339941 66.0.160.106 (17 May 2005 07:25:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail