471,337 Members | 1,121 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Store GUID as file/folder property

Is there any way to store a GUID value as a property on a file/folder?

When my app creates new files/folders, I'd like to store a GUID as a
custom property on the file/folder. This way, when the user physically
moves the file/folder using Windows Explorer (and not using my app), I
can use this GUID to detect which files/folders were moved and my app
can internally re-map some things.

Any thoughts?

Jul 21 '05 #1
1 1792
Do you have NTFS? IF yes, NTFS supports alternative datastreams (ADS) which
means that you can attach metadata to any file on your system.
The only problem is that it does not work under FAT32.

Alternatively, provided that nobody changes the files unnotified from your
program you can use a hashtable which saves filesize and CRC value
(hashcode) of the files so you can later recognize the files even if they
were renamed. This only works if the files are not modified (exception from
within your program).

hope that helps.

"Bryan Lynn" <ly****@gmail.com> schrieb im Newsbeitrag
news:11*********************@c13g2000cwb.googlegro ups.com...
Is there any way to store a GUID value as a property on a file/folder?

When my app creates new files/folders, I'd like to store a GUID as a
custom property on the file/folder. This way, when the user physically
moves the file/folder using Windows Explorer (and not using my app), I
can use this GUID to detect which files/folders were moved and my app
can internally re-map some things.

Any thoughts?

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mark | last post: by
14 posts views Thread by Nak | last post: by
1 post views Thread by Brian Henry | last post: by
1 post views Thread by Bryan Lynn | last post: by
1 post views Thread by Wolf | last post: by
11 posts views Thread by Tarren | last post: by
10 posts views Thread by Paul Cheetham | last post: by
6 posts views Thread by martin1 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.