Display "My Documents"/"My Videos"/etc. without "My" prefix in Windows 7

14

2

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?

Jacob

Posted 2009-12-06T10:38:27.793

Reputation: 581

They put the 'My' back in? Why would they do that! Darn. – Phoshi – 2009-12-06T11:35:21.173

Windows 7 by default does not display "My".. for me – Shoban – 2009-12-06T14:46:19.280

As I understand it, the "My" came back because people confused the "Documents" library with the "Documents" folder. – ReinstateMonica Larry Osterman – 2009-12-06T19:35:33.923

1@Shoban: Are you still running RC? They only put it back in RTM. – Jacob – 2009-12-17T11:59:22.203

Answers

18

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.

Jacob

Posted 2009-12-06T10:38:27.793

Reputation: 581

8

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!

William Hilsum

Posted 2009-12-06T10:38:27.793

Reputation: 111 572

I've seen the same behavior as Rob. I can change it, it lasts a little while, and then weeks or months or some period of time later, it comes bacl. – jpmc26 – 2016-04-24T21:17:47.620

1This has not worked for me in Windows 7; in fact, it works and then it reverts. It's been very frustrating. – Rob – 2010-07-23T22:31:18.053

@Rob This works fine in Windows 7 as I have done it and tested it on several machines! – William Hilsum – 2010-07-23T23:50:20.587

Yup, just tested it. – RCIX – 2009-12-06T10:45:02.853

3

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.

cquirke

Posted 2009-12-06T10:38:27.793

Reputation: 31

wow. if I was designing an OS I would never have thought of adding these features. all way ahead of their time and dev time well spent! – jozxyqk – 2015-11-03T14:24:36.167