Windows 7(可能还有 Windows Vista)使用文件中的LocalizedResourceName
条目显示本地化的文件夹名称desktop.ini
。对于我的Documents
文件夹,这看起来像
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
IconResource=%SystemRoot%\system32\imageres.dll,-112
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-235
(见这个问题)
这样,资源管理器在德语 Windows 上将路径“C:\Users\Username\Documents”显示为“C:\Benutzer\Username\Dokumente”。
我想知道,是否有任何内置的 shell 函数可以自动获取此本地化名称,或者更好的是,将整个路径转换为其本地化形式(最好是 .NET 中的任何内容)?
这更有趣,因为该LocalizedResourceName
条目仅针对 Windows CE 进行了记录(请参见此处)。
谢谢
马丁