VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Dir Monitor Update

by Alan Toews (6 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

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.
Code 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

Download Dir Monitor Update

Download Dir Monitor Update (15 KB)

Dir Monitor Update Comments

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

Post your comment

Subject:
Message:
0/1000 characters