多层Application Data文件夹-Windows7 [英] Multiple layers of Application Data folders - Windows7

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

问题描述

在命令窗口中,如果导航到c:\users\me并执行 dir,则看到13个文件夹,但没有文件。如果我执行 dir / s,我会看到成千上万个文件,但令我困扰的是我看到这样的路径:

In a command window If I navigate to c:\users\me and do "dir", I see 13 folders but no files. If I do "dir /s", I see thousands of files, but what bothers me is that I see paths like this:

C:\Users\me \AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data ...然后,最后是Microsoft\VisualStudio或Google\Chrome之类的东西

C:\Users\me\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data... then, finally, something like Microsoft\VisualStudio or Google\Chrome or so on.

Application Data文件夹的层和层是什么?如果使用AgentRansack搜索深入这些层的某些文件,则可能会在此层次结构中的不同级别看到15或20个文件实例。如果删除一个,它会显示删除失败,但会将其从列表中删除。因此,这些文件夹似乎有点虚拟……有什么线索吗?

What is it with the layers and layers of Application Data folders? If I search using AgentRansack for some file deep down into these layers, I may see 15 or 20 instances of a file at different levels in this hierarchy. If I delete one, it says, "Delete Failed", but it removes it from the list. So, it looks like there is something "virtual" about these folders... Any clues?

推荐答案

DaddyMan发布了此内容(措辞):

DaddyMan posted this (paraphrased):

应用程序数据当您更改应用程序数据文件夹的权限时,文件夹会一直将自己复制为子文件夹,通常是通过为自己授予c:\users\文件夹的完全权限。 Application Data文件夹实际上是一个结点,它指向其父文件夹。

The Application Data 'folder' keeps replicating itself as a sub-folder when you alter permissions for the Application Data folder, usually by giving yourself full permissions for the c:\users\ folder. The Application Data folder is actually a junction, which points back to its parent folder.

C:\Users\\AppData\Local\Application Data\ b

C:\Users\\AppData\Local\Application Data\

指向

C:\Users\\AppData\Local\

C:\Users\\AppData\Local\

这样做是为了防止当非Windows 7的应用程序扫描应用程序数据文件夹时进行递归操作,这也是您收到访问被拒绝消息的原因

This is done to prevent recursion when a non-Windows 7 aware application scans the Application Data 'folder', and it's also the reason for the "Access is denied" message you get on certain folders in c:\users\.

原始链接

此外,Shawn B. Keene-MVP-发布了此内容:

Also, Shawn B. Keene - MVP - posted this:

每当应用程序尝试保存文件时到顽皮的位置(例如C:\Windows或C:\Program Files),Windows将强制实际保存最终保存在用户文件夹内的某个位置(C:\Users\Username\L ocalSettings\VirtualStore\程序文件)。它欺骗程序以为该文件确实确实位于Program Files文件夹中,但实际上它位于您的用户文件夹中。

Anytime an application tries to save a file to a naughty location (such as C:\Windows or C:\Program Files), Windows will force the actual save to end up at a place inside your user folder instead (C:\Users\Username\LocalSettings\VirtualStore\Program Files). It tricks the program into thinking that the file really did go to the Program Files folder, but in reality it's somewhere inside your user folder.

这种虚拟化(使程序陷入困境)是必需的,这样保存到顽皮位置的错误创建的应用仍然可以使用。替代方法是该程序尝试保存,然后在无法访问Program Files文件夹时崩溃。如果Windows不这样做,该程序将在每次运行时要求管理员访问权限-这是非常不安全的,而且将使该程序无法在不允许用户成为管理员的公司环境中使用。

This virtualization (tricking the program) is required so that badly-created apps that save to naughty locations will still work. The alternative is that the program tries to save and then crashes when it can't access the Program Files folder. If Windows didn't do this, the program would require administrator access every time it runs -- which is very insecure, plus would make the program impossible to use in corporate environments where users aren't allowed to be administrators.

请放心,您看到的多个层是文件夹重定向和虚拟化(也称为接合点)的结果。无需清理或纠正它们,建议您避免浏览那些文件。

Rest assured that the multple layers you are seeing are a result of folder redirection and virtualization (also known as junction points). There's no need to clean these up or correct it, and you are well advised to avoid exploring those files.

为获得更好的结果,请将TCW文件保存到文档文件夹中程序文件或其他位置,以防止任何虚拟化问题。

For better results, save your TCW files to your Documents folder instead of Program Files or elsewhere, which will prevent any virtualization weirdness.

原始链接为此处

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

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