HoangTuHieu 0 Posted April 20, 2011 Hi guys! I want to figure a way to keep trace of a number of certain files. Let's say I have a list of files at a time, and the next time I run the code, if any file was moved or renamed, it would be able to notice and report the new name or new path corresponding to the old one. It would be great if it's gonna notice had the file been deleted or any other type of changes made since the last time it checked. Can anyone help or throw me an idea? It would help also if anyone can tell me is there a way to identify a file other than using a long full name? I've been searching for a while but without result . Share this post Link to post Share on other sites
smartee 14 Posted April 21, 2011 hi HoangTuHieu,How about making a file indexing script? Question #1: What do you mean file indexing?Answer #1: Specifically speaking, file indexing (here) refers to the process of creating and maintaining a relational database of file attributes.A synopsis/roadmap:Index the files (using SQLite, and a recursive implementation of _FileListToArray() perhaps), with hashes (), filename, filepath etc.After some changes, index them (the files) again then compare results of indexing with some nifty SQL queries (learn SQL), and display/write a report to your liking using one (or many) of the various available methods of displaying/Hope this helps. -smartee Share this post Link to post Share on other sites
JoHanatCent 13 Posted April 21, 2011 (edited) Hi guys!I want to figure a way to keep trace of a number of certain files. Let's say I have a list of files at a time, and the next time I run the code, if any file was moved or renamed, it would be able to notice and report the new name or new path corresponding to the old one. It would be great if it's gonna notice had the file been deleted or any other type of changes made since the last time it checked. Can anyone help or throw me an idea?It would help also if anyone can tell me is there a way to identify a file other than using a long full name?I've been searching for a while but without result .Maybe will help?Or Edited April 21, 2011 by JoHanatCent Share this post Link to post Share on other sites
HoangTuHieu 0 Posted April 22, 2011 Wow, this is quite a new stuff to me. Thanks for your guides, Smartee and JohanatCent. I haven't really found my answer yet but it's a lot to play with now. I'll be back later when I get some progress. Share this post Link to post Share on other sites