How do special folders work on Windows 7?

4

I did something silly and accidentally moved my my special folders (My Documents, My Music etc.) to the Desktop. Once I noticed my mistake I quickly moved them back. But now my System acts erratically.

It continuously creates new empty folders on my Desktop. And I have now two folders named "My Pictures" in my home directory. One of which is magically linked to the one in Desktop while on the command line one one is actually visible.

If I delete the superfluous folders on Desktop then the explorer crashes. It is all a big mess.

Of course I checked HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders and it looks all ok there.

So here the question: As anybody got any informations on how Windows 7 handles the special folders which might help be clean up the mess?

I am well versed in using both the command line or the registry editor.

Martin

Posted 2011-01-28T13:04:38.750

Reputation: 305

Answers

2

For the benefit of those who might find the question:

In the and I fixed it by using a combination of command line and explorer:

  1. I let Windows recreate new empty folders on the desktop
  2. I renamed the full directories in my home directory using TakeCommand
  3. I moved the folder from the desktop back where they belong using the Explorer
  4. I deleted the empty directories using TakeCommand.
  5. I renamed the full directories using TakeCommand.

I leave the question open as there is still no answer on how the explorer manages those special folders and those alias names which show up in the explorer but have no representation in the file system at all (Reminds me of OS/2 shadow links).

Martin

Posted 2011-01-28T13:04:38.750

Reputation: 305

3

If all else fails, create a separate fresh user profile, then manually shift your data into the appropriate folders.

Have you tried using System Restore to revert back to a point when you knew things were working well?

There's also a Fix-It tool from MS that resets the system shell folders.

There's also a table available listing the appropriate paths - scroll down for the Vista / Win 7 one.

Sparx

Posted 2011-01-28T13:04:38.750

Reputation: 1 667

1

Many of the 'special folders' you see in explorer in Windows 7 (those that 'magically link') are junction points. Open a command prompt and go to your user's directory. type in

DIR /A:L

and you will see all the reparse points. The "L" attribute option is a new option I have not seen until windows 7 (I did skip vista).

Richard

Posted 2011-01-28T13:04:38.750

Reputation: 11

I know about junction points :-). — But in this case it is the new "Library" feature of Windows 7 Explorer which brought the trouble:

http://msdn.microsoft.com/en-us/magazine/dd861346.aspx

Once you know the right keyword to google it becomes all clear.

– Martin – 2011-12-31T16:48:21.337

Thanks. I was playing around a little with Libraries but never quite got that far. The more you dig into the structure, the more questions pop up. – Richard – 2011-12-31T17:41:01.293

0

I think Nirsoft's SpecialFoldersView is what you're looking for.

I'm using it to see what's going where, following some re-direction.

I'm using Tune-Up's Disk space Explorer to remove large data from my OS, and this program's helping me fix application datapaths following a re-shuffle.

Hope this helps!

screenshot

Joe

Posted 2011-01-28T13:04:38.750

Reputation: 1