VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Dir Monitor

Alan Toews  (6 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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)

Returns
name of file or folder changed, and the type of change that occured.

Side Effects
None that I know of.

Rate Dir Monitor (10(10 Vote))

Download Dir Monitor

Dir Monitor Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters