Search Tools Links Login

Dir Monitor Update


Visual Basic 6, or VB Classic

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.

Original Author: Alan Toews

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.

Assumptions

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 77 times

Categories

Visual Basic 6

Attachments

Dir Monito213696192001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 16,212 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.