C # API / NTFS dsofile file properties

I am looking for a good way to add metadata to a file. dsofile.dll works fine for NTFS. Metadata is lost when you drop a copy on the FAT32 share (I think it uses NTFS hidden streams). Microsoft Word documents contain metadata that are not lost, how do they do it? FAT syntax, sending a file by e-mail strip of all metadata created using dsofile (as well as metadata created manually using Windows Explorer). Separate metadata files are not an option. It must be compatible with standard Windows methods. If I send someone a file with Outlook and they send it back, metadata should not be lost.

(the metadata required is actually just an identifier)

+4
source share
3 answers

Any decision depends on the format. MS OFFice files are (all) compound files and there is room for properties. In some formats (for example, PE files) it is safe to simply add data to the end of the file if you know how to read it later. In the ZIP file, you can probably find a place in the directory or simply add an auxiliary file with your data to the archive. Other formats do not stand this, and you will need to find your own way to solve the problem.

Actually, the file name can also be a good placeholder for your identifier.

- , , , ZIP- - SolFS .

+1

, . , "" , "" ( ). , CopyFile Windows " ".

, "" .

(, MSFT docfile aka.doc/.xls/etc). (.mp3,.jpg,.exe).

SOL (.txt,.bmp).

+2

, DSOFile? .. , ..? ?

, , , , , , DSOfile , , dsofile .

0

All Articles