VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Dir Monitor

by Alan Toews (6 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

ActiveX dll source code & test project which monitors a directory for changes. It will watch for files being added or deleted, and changes in attributes or size, and raise an event when a change occurs.
I have not used any api calls for this, so there ARE more efficient ways to write this code.
I needed to get it done, and was having too much trouble with the api calls working smoothly.
I don't care if you vote, but would really appreciate constructive comments.
Thx

Inputs
Name of path to watch
Assumes
Reference the dll and declare it WithEvents in your app. (See sample included)
Code Returns
name of file or folder changed, and the type of change that occured.
Side Effects
None that I know of.

Rate Dir Monitor

Download Dir Monitor

Download Dir Monitor (7 KB)

Dir Monitor Comments

No comments have been posted about Dir Monitor. Why not be the first to post a comment about Dir Monitor.

Post your comment

Subject:
Message:
0/1000 characters