Categorize files that are in a single folder
Is there a way to categorize files that are located within a single folder ?
I am considering using the Comments field in the file's attributes to store the category(s)
Say there is a single folder in the C drive, and I display all it's file names in a listbox.
The files mainly would be .jpg .msg(outlook's) .docx .xlsx .pdf
Sometimes the user wishes to show all the files in the listbox.
Some other times they wish to apply a filter to the list in the listbox.
The filter would NOT be based on the extension, instead it would be based on some categories.
The categories are related to their business, but let us say they are these -
CAT1 CAT2 CAT3 CAT4 CAT5 CAT6 CAT7
They wish to mark some of the files with a category, and sometimes a file would have multiple categories.
They do not wish to change the File names.
Can the categories be stored in the file attributes (perhaps in the Comments field) (is that called metadata ?)
One file might have just Cat2
Another file might have Cat2 and Cat3 and Cat6 (stored thus in the comments field "Cat2 Cat3 Cat6")
When they apply the filter (say Cat2), only files with Cat2 in the comments field, would show in the listbox.
If they apply a filter of Cat 6, only one file appears in the Listbox
If they apply a filter of Cat 2, both files will appear in the Listbox
Can the Comments field be used reliably, in that manner, from VB6 ?