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:22:37 GMT  
 How to receive file change notification in VB6?
Jason,

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 suggest you ask in the VB6 groups, microsoft.public.vb.*

You might want to check out the ReadDirectoryChangesW function.

Mattias

===
Mattias Sj?gren (VB MVP)

http://www.msjogren.net/dotnet/



Thu, 27 Jan 2005 05:28:26 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