Windows Vista: Why can't we rename a copy of My Documents folder?

One person was trying to back up his documents directory. So, he'd use Robocopy to copy the files over. For example, he would use the following command line: robocopy c:\users\<username>\documents e:\documentsbackup-january Then, he'd click over to this directory in Windows Explorer, and he couldn't see e:\documentsbackup-january, he would see e:\documents. To find out what is […]

One person was trying to back up his documents directory. So, he'd use Robocopy to copy the files over. For example, he would use the following command line:

robocopy c:\users\<username>\documents e:\documentsbackup-january

Then, he'd click over to this directory in Windows Explorer, and he couldn't see e:\documentsbackup-january, he would see e:\documents.

To find out what is going on, you'll have to view some hidden system files. From Windows Explorer, select Organize -> Folder and Search Options. On the View tab, select the option to show hidden files and uncheck the option to hide protected operating system files. Now, in the documents directory, right click on desktop.ini and select edit. Here is mine:

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
IconResource=%SystemRoot%\system32\imageres.dll,-112
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-235

The LocalizedResourceName is what is making things interesting here. No matter what you call this directory, Explorer is going to display the LocalizedResourceName.

Microsoft

Windows Vista, Documents, Folder, Rename, Tips and Tricks, Troubleshooting