什么是Programdata / Application Data文件夹? [英] What is the Programdata/Application Data folder?

查看:255
本文介绍了什么是Programdata / Application Data文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在编写一个遍历指定目录树的应用程序,并且我正在尝试处理可处理文件夹访问权限的异常,并且遇到一个文件夹,编译器返回该文件夹的目录为C:\ ProgramData\应用程序数据

So I am writing an application that iterates through a specified directory tree and I was experimenting with the exception that handles permissions for folder access and there was one folder I came across that the compiler returned that had the directory of C:\ProgramData\Application Data

有人知道这个文件夹是什么吗? Windows资源管理器中似乎不存在它。例如,文件夹不存在。它不是隐藏的。它只是不在那里。我能够使用提升的命令提示符进入文件夹,但是当我使用 dir命令查看文件夹包含的内容时,CMD返回:

Does anyone know what this folder is? It doesn't seem to exist within Windows Explorer. Like, the folder isn't there. It's not hidden. It just isn't there. I was able to get inside the folder using an elevated command prompt but when I used the "dir" command to see what the folder contained, CMD returned:

目录C:\ProgramData\应用程序数据

"Directory of C:\ProgramData\Application Data

找不到文件

我很好奇这是什么文件夹是.....

I am curious to know what this folder is.....

推荐答案

dir / a 命令是您的朋友吗?

C:\ProgramData>dir /a
 Volume in drive C has no label.
 Volume Serial Number is 848A-BBB7

 Directory of C:\ProgramData

23/05/2015  03:38 pm    <DIR>          .
23/05/2015  03:38 pm    <DIR>          ..
14/05/2015  10:28 pm    <JUNCTION>     Application Data [C:\ProgramData]

如您所见,应用程序数据是一个结点指向ProgramData。 Windows包括许多类似的联结点,以便与较旧的应用程序向后兼容。

As you can see, Application Data is a junction point which points back to ProgramData. Windows includes a number of similar junction points, for backwards compatibility with older applications.

联结点的安全权限明确禁止列出文件,这就是为什么您不能获取其内容的列表:

The security permissions on the junction point explicitly prohibit listing files, which is why you can't get a listing of its contents:

C:\ProgramData>icacls "Application Data" /L
Application Data Everyone:(DENY)(S,RD)
                 Everyone:(RX)
                 NT AUTHORITY\SYSTEM:(F)
                 BUILTIN\Administrators:(F)

此外,交界点标记为System and Hidden:

Also, the junction point is marked System and Hidden:

C:\ProgramData>attrib /L "Application Data"
   SH   I    C:\ProgramData\Application Data

这就是资源管理器不显示它的原因。 (即使配置为显示隐藏项目,资源管理器似乎也不会显示标记为隐藏和系统的交界点。)

which is why Explorer doesn't show it. (It appears that Explorer does not show junction points marked hidden and system, even if configured to show hidden items.)

这篇关于什么是Programdata / Application Data文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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