I am trying to track multiple folders for any changes in files. Can it be done through VBscript. Is there a component which i can use to help me do this
A simple notification with the name of the folder containing the changed file would be good enough. I have a list of files which i would compare with whenever i receive this notification.
I have looked into a couple of programs like DirAlert, FolderWatch these Components have their preset action which are not much useful for me and they allow me to watch single folder only.
I have also looked into some API's like FindFirstChangeNotification and ReadDirectoryChangesW but API's are tough for me as have never programmed with them before moreover they let me watch single folders only.
Both FindFirstChangeNotification and ReadDirectoryChangesW will allow you to spot changes to an entire volume. However, FindFirstChangeNotification will then merely tell you that a change occurred, not which file it occurred to. ReadDirectoryChangesW, on the other hand, can return the filename of the changed file. As it happens I've just put together an example on using this API call in thread222-576673
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.