Multiple layers of Application Data folders - Windows7

后端 未结 1 719
挽巷
挽巷 2021-01-06 03:23

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

1条回答
  •  一生所求
    2021-01-06 04:18

    DaddyMan posted this (paraphrased):

    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\

    points to

    C:\Users\\AppData\Local\

    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\.

    The original link.

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

    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.

    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.

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

    The original link is here.

    0 讨论(0)
提交回复
热议问题