(Edited by TimOz on 27-Jun-03 13:01. Added info about “.lnk” files & cmd line dir view)
I may have discovered a useful feature (bug?) in the Start Menu. When you right-drag-n-drop a folder to the Start Menu (or a sub-folder) and select “Create a Shortcut”, it creates an indirect link or reference, instead of a normal shortcut!
So what?
Well, the indirect link cascades its contents, including sub-folders, as if it were in the Start Menu hierarchy. A normal folder shortcut opens in a new explorer window, and only when you click it. The best part? If you move or copy the indirect link from the Start Menu it retains the same functionality!
A couple of uses so far:
-> indirect links to both Program Files and Windows in the Start Menu, to browse for programs directly, if needed.
-> an indirect link to a Shared Favorites folder (created in All Users) in everyone’s Favorites, to share links to news, weather, fuel prices, etc. (Simpler maintenance with just one place to update.)
There could be some technical implications behind it, so take care if you’re going try this at home boys & girls.
I can’t explain how or why it works and haven’t found anything relevant via Google or MSKB. What I do know is that:
-> A normal shortcut is created as a “Shortcut” file type, has the arrow superimposed on its icon, an “lnk” extension, and is listed as file by the CMD line DIR command.
-> A normal folder is a “File Folder” file type, and is listed as a directory (“”) by the DIR command.
-> The indirect link is a “Folder” with an unmodified icon, and unlike the other two has very limited Properties, with just a General tab. The only information on the tab is its name (editable), type, target folder, and date created. (My system is set to use the little arrow, and to not prefix “Shortcut to”.) The DIR command lists the link as a directory, containing the file “target.lnk”. So maybe this file, unseen in Windows, does the smoke and mirrors trick?
I have played with it for a couple of days , to try and break it, and so far it seems robust. All system functions seem to work with the indirect links, as do file open, save as, and other “browse” type dialogs in both windows and 3rd party programs. The one variation is that some “browse” dialogs superimpose the arrow on the indirect link, and change to the linked folder when selected, rather than treating it as part of the local folder hierarchy as explorer does.