Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Even though Windows 7 stores special folders in the home folder as Documents/Videos/etc, they are still displayed as My Documents/My Videos/etc in Windows Explorer. I preferred the way that Vista displayed them (i.e. without the "My " prefix).

Is there a way to configure this in Windows 7?

share|improve this question
    
They put the 'My' back in? Why would they do that! Darn. –  Phoshi Dec 6 '09 at 11:35
    
Windows 7 by default does not display "My".. for me –  Shoban Dec 6 '09 at 14:46
    
As I understand it, the "My" came back because people confused the "Documents" library with the "Documents" folder. –  Larry Osterman Dec 6 '09 at 19:35
1  
@Shoban: Are you still running RC? They only put it back in RTM. –  Jacob Dec 17 '09 at 11:59

3 Answers 3

up vote 13 down vote accepted

Figured it out myself: In every special folder, there is a desktop.ini file that specifies how it should display. There is a line in there that looks like:

LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770

That line tells windows to use the localized name from a string resource in shell32.dll. If you delete that line, logout and login again, the displayed name will be the same as the file name.

I suspect that manually renaming the folder does exactly that.

share|improve this answer

Easiest way, go to your home folder e.g. c:\users\<name> or in run type %userprofile% then right click on any of the my folders and just choose rename, then get rid of the my prefix.

Crude, but works well!

share|improve this answer
    
Yup, just tested it. –  RCIX Dec 6 '09 at 10:45
    
This has not worked for me in Windows 7; in fact, it works and then it reverts. It's been very frustrating. –  Rob Jul 23 '10 at 22:31
    
@Rob This works fine in Windows 7 as I have done it and tested it on several machines! –  William Hilsum Jul 23 '10 at 23:50

Shell folders such as "(My) Documents" are named at two levels, and UIs that rename "folders" are ambiguous as you don't know which level is being renamed.

At the file system directory level, is the name you'd see via file system managers, the Dir command, and so on.

The Windows shell (Windows Explorer, "My Computer" etc.) browses the namespace, not the file system as such, so it displays the namespace level.

Shell folders are linked to target file system directories in both directions; there are registry settings that point from namespace folder to file system directory, and within the file system directory there is a Desktop.ini that points back to the namespace.

Specifically, Desktop.ini may define: - an overriding "localized" folder name - whether this name is to be transferred when folder is copied - an ID that links to a set of special behaviours for that namespace item type

Sometimes the namsespace name is applied circumstantially, e.g. when logged into user account John, you may see "My Documents", whereas from other user accounts, you may see "John's Documents". Such behaviour may be defined within the logic for that type of namespace item, as pointed to by the ID in the Desktop.ini

Problems arise in at least two cases...

1) Multiple namespace items map to a single directory

In this situation, there's only one Desktop.ini to point back to these multiple referring namespace folders, and most likely "the last one wins".

2) Windows 7 periodically re-asserts default namespace names

Let's say you've carefully named the raw directory to taste, mapped the shell folder to this target, and set your desired namespace name within the Desktop.ini in the directory. You've viewed this from various UIs and all is as it should be.

Yet an a few days or weeks, the namespace names are back to "My..." again, and when you edit the Desktop.ini, you confirm the unwanted default name is being asserted there. You edit it back, but the same thing happens again, and again.

Problem (2) is the one I'm trying to solve, the search for which brought me to this thread.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.