Hi,
I have some code that generates a file listing for a specified directory or drive. My intention is to run this once a week for a number of weeks and maintain a list of a particular file type.
I need to be able to track additions and deletions however some of the files get moved during the course of a week and, as I am unable to guarantee a unique file name, it is difficult to differentiate between files that have a new location and genuinely new files.
What I need is a unique file reference that does not change over the lifetime of a file. I believe that within the MFT of an NTFS drive there is a unique file ID, but I can't find any way of retrieving this in VB6.
If anyone could offer any suggestions it would be much appreciated!
TIA,
Ed Metcalfe.
Please do not feed the trolls.....
I have some code that generates a file listing for a specified directory or drive. My intention is to run this once a week for a number of weeks and maintain a list of a particular file type.
I need to be able to track additions and deletions however some of the files get moved during the course of a week and, as I am unable to guarantee a unique file name, it is difficult to differentiate between files that have a new location and genuinely new files.
What I need is a unique file reference that does not change over the lifetime of a file. I believe that within the MFT of an NTFS drive there is a unique file ID, but I can't find any way of retrieving this in VB6.
If anyone could offer any suggestions it would be much appreciated!
TIA,
Ed Metcalfe.
Please do not feed the trolls.....