唯一文件夹标识符 [英] Unique Folder Identifier

查看:39
本文介绍了唯一文件夹标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早些时候,有人慷慨地回答了我关于检索与计算机上的文件相关联的唯一标识符的问题.唯一文件标识符

Earlier today someone generously answered my question regarding the retrieval of a unique identifier associated with files on the computer. Unique File Identifier

该解决方案效果很好,但是,它没有解决文件夹的唯一标识符.如何检索指定目录的 UID,UID 将通过重命名和移动保留在目录中.

The solution worked great, however, it does not address unique identifiers for folders. How can I retrieve a UID for specified directories, UID's that will stay with the directory through renames and moves.

更新:FSCTL_GET_OBJECT_ID 似乎是我所追求的功能,但有人能够提供有关用法的简要上下文吗?谢谢!

Update: FSCTL_GET_OBJECT_ID seems like it is the function I am after, but would someone be able to provide brief context on the usage? Thanks!

推荐答案

我把它放到了一个答案中,因为它的文字太多了,无法评论.

I put this into an answer, because it was too much text for a comment.

我回答了您关于唯一文件标识符的问题.我没有深入研究这个话题.这是很好的研究技能.

I answered your question regarding Unique File Identifiers. I didn't dig in too deep into this topic. That's been just good researching skills.

我进行了一些研究并收集了一些可能对您有所帮助的文档链接:

I researched a bit and collected some documentation links that may help you:

我已经搜索了很长时间,但我找不到任何可以识别每个文件夹的内容,无论其路径如何.

I've been searching for quite a time, but I couldn't find anything which identifies each folder, regardless of its path.

始终可以识别的唯一文件夹 - 据我所知 - 是这些已知文件夹.那是因为一个 WinOS 使用 C:/winnt/Windows Net/ 而另一个使用 D:/Windows/Net/ 路径(不要查找那些,我只是把它们从我的头顶上编出来).

The only folders, which always can be identified - as far as I know, yet - are these known folders. That's because one WinOS uses the C:/winnt/Windows Net/ and another one uses D:/Windows/Net/ path (don't look up those, I just made them up off the top of my head).

这篇关于唯一文件夹标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆