Saturday, February 13, 2010

Programmer - Globally Unique IDs for files in Windows

Programmer Question

I'm wondering how to get globally unique IDs for files and folders in Windows (XP, Vista and 7), and also be able to get the full path of the file or folder just by having the ID, something like getFileByGUID. I'm trying to do this in C++, C# and PHP.



The globally unique IDs should stay the same even if the file is moved, so using the full path of the file or folder wouldn't work.



Any help would be much appreciated, thanks!

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails