When you drag a folder to the Favorite Links area in Windows Explorer, the shortcut to the folder is placed in the Links folder. This was not the case in one of my Windows Vista systems, where the entire folder and sub-folders were moved to the Links folder when dragged to Favorite Links.


Fig 1: Folder being moved when dragged to Favorite Links.

Before this problem was seen, I had reset the Links folder by deleting its contents and rebuilt using the shell:Links command, in order to fix the Links folder icon.

When I compared the Desktop.ini file in the Links folder of my user account with that of the Guest account, I found the following line missing in the Desktop.ini file in my profile:

DefaultDropEffect=4

Per the DESKTOP.INI Documentation, the DefaultDropEffect line sets the default drag-and-drop action. Setting it 4 creates a shortcut of the dragged folder in the Links folder. The problem was resolved after I added the DefaultDropEffect line to the Desktop.ini, set its Read-only attribute and restarted Windows.

For others who experience the problem, here is a short write-up.

The default contents of the Desktop.ini file (for the Links folder) is given below:

(REF Shell folders are displayed with the standard folder icon in Windows Vista)

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21810
IconResource=%SystemRoot%\system32\imageres.dll,-185
DefaultDropEffect=4
[LocalizedFileNames]
Public.lnk=@shell32.dll,-21816
Searches.lnk=@shell32.dll,-9031
Recently Changed.lnk=@shell32.dll,-32813
Music.lnk=@shell32.dll,-21790
Pictures.lnk=@shell32.dll,-21779
Documents.lnk=@shell32.dll,-21770

Fixing Desktop.ini in the Links folder

Method 1

Download DesktopINIFix run the tool.

Select Favorite Links from the list, and click Fix Desktop.ini

Logoff and login back for the change to take effect.

Method 2

To open the Links folder of your user profile, right-click on an empty area in the Favorite Links area in Explorer, and click Open Favorite Links Folder.

Delete the existing Desktop.ini file and create one with the above contents. Then right-click desktop.ini and choose Properties. Place a checkmark near Read-only attribute, and click OK. Logoff and login back.


Fig 2: Default drop effect changed to "create link" (normal behavior)

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

2 Comments

  1. madmother
    said this on Monday, June 21st 2010 7:42 pm

    I have found 2 desktop.ini in the video section of my sons computer…i have tried open all hidden folders option but i am still un-able to view the contents…Can u please show me how to view the contents of the desktop.ini

  2. sameer
    said this on Monday, December 1st 2008 3:35 am

    thankyou sooooooooooooooo much
    i really needed this help as my entire folders kept moving everytime i created a favourite link
    thanks alot…u made my day =]

Leave a Reply