VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Dir Monitor Update

Alan Toews  (6 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Monitor all files in a directory & subdirectories for any change in size, attributes, date, access date, modified date, name, and more. Fixed some missed events from last version, and added a few more. Also, added the ability to check sub directories, and add search filters (*.exe, etc..) Also switched to a class based timer, and api file/directory calls instead of slow dir/fso calls. Special thanks to Dana Seaman for the suggestions and input on this update.

Inputs
Path to be monitored (optional) change in default events to monitor and whether or not sub directories will be searched. Also, refresh interval can be changed.

Assumes
Assumes you know how to compile and reference an activex dll in your own project, although simple instructions are provided.

Returns
name and path of file changed, and what change occured.

Side Effects
A low refresh rate can hog system resources. Checking sub directories is not recommended, unless there are only a few.

API Declarations
'Several. See Code

Rate Dir Monitor Update (8(8 Vote))

Download Dir Monitor Update

Dir Monitor Update Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters