ICQBOY 0 Posted January 11, 2011 Share Posted January 11, 2011 Wow that's a really great function!This function "ReadDirectoryChangeW" could be monitor CD/DVD files/folders change? Link to post Share on other sites
Zinthose 5 Posted March 29, 2011 Share Posted March 29, 2011 ...Excellent work Jackchen & All!Ran some tests and here are my observations...Minor...Renaming a monitored folder is not triggered as a change although the changes within the renamed folder are retained. IMO This is both a good and bad thing.If the folder NTFS permissions change in a way that prevent access to the folder after the monitor was started, the changes are triggered.If the folder NTFS permissions change in a way that prevent access to the folder before the monitor was started, the changes are not triggered.If the folder NTFS permissions change in a way that allow access to the folder after the monitor was started, the changes are not triggered.If a sub-folder is a NTFS Junction to another folder not within the sub structure of the monitored folder, the changes are not triggered.If a sub-folder is a NTFS source junction to a folder not within the sub structure of the monitored folder, the changes are triggered.Major...Removing of the folder causes the event trigger to enter an apparent infinite loop, repeating the last change.For my purposes, the minor issues are not going to be a problem. However, the folder deletion issue is an defiantly a problem. I'm going to dig into the code and see if I can resolve it myself but I'm also calling the crowd to take a look as well. --- TTFN Link to post Share on other sites
Demetris 0 Posted June 23, 2011 Share Posted June 23, 2011 (edited) Is it possible to have something that will show in real time all existing files and directories in some directory and hide any deleted files and directories? What I'm trying to do is to watch some directory and see only existing files and directories recursively in real time. I need the option: Created... I don't need the option: Modified... Instead of "Deleted..." option I need to remove the line "Created..." for the deleted file. I'll try to explain it from my view: Lets say I have directories "c:\test\1" "c:\test\2" and files "c:\test\1\A" "c:\test\1\B" "c:\test\2\A". When program starts I need to scan folder in real time for existing data and show them all. Then let's say I'll delete the "c:\test\1\A" I need the created line "Created... c:\test\1\A" from before to disappear. Thanks. Ps. I found: It seems that's doing my job. Edited July 14, 2011 by Demetris Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now