How to receive file change notification in VB6? 
Author Message
 How to receive file change notification in VB6?

Hi, I was wondering how i can detect all changes within a folder in the
filesystem (renaming, creating new file, moving file) in Visual Basic 6. I
have source code from the net which uses the findfirstchangenotification
from kernel32.dll to get a notification back from the os, however, it can
only detect files that have been written to the hard drive. Which means that
if the file is cached, then a notification would not occur. So if a small
file gets moved into the directory (for example, a file of 1K in size), then
a notification will not occur because that file was cached.
It would be great if anyone can point me in the right direction, I'm a
junior programmer, so I don't know much about embedded programming, thank
you.


Thu, 27 Jan 2005 03:21:31 GMT  
 How to receive file change notification in VB6?
See if this freeware will help:

http://www.karenware.com/powertools/pthasher.asp

The VB6 source code is also available so that you may be able to incorporate it into what
you are doing. The program creates CRCs of a file or group of files. You could run
something similar to this at an interval you determine to check for changes.

--
Wayne Morgan
Microsoft Access MVP

Quote:

> Hi, I was wondering how i can detect all changes within a folder in the
> filesystem (renaming, creating new file, moving file) in visual basic 6. I
> have source code from the net which uses the findfirstchangenotification
> from kernel32.dll to get a notification back from the os, however, it can
> only detect files that have been written to the hard drive. Which means that
> if the file is cached, then a notification would not occur. So if a small
> file gets moved into the directory (for example, a file of 1K in size), then
> a notification will not occur because that file was cached.
> It would be great if anyone can point me in the right direction, I'm a
> junior programmer, so I don't know much about embedded programming, thank
> you.



Thu, 27 Jan 2005 05:52:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to receive file change notification in VB6?

2. How to receive file change notification?

3. Receiving notification about changes(adding or removing ActiveX controls) in the container

4. Receiving notification on Send, Receive and Delete

5. FTP Notification when a file is received

6. Network User Notifier / File change notification

7. How to I get file change notification?

8. How to get file system change notifications?

9. Notification when a file changes

10. File system change notifications

11. Notification that file or folder changed

12. Files changes notifications

 

 
Powered by phpBB® Forum Software