Help - Search - Members - Calendar
Full Version: How To : Add Custom Folder to My Computer or the Desktop
MSFN Forums > Customizing Windows and Graphics > Windows Tips 'n' Tweaks

   


Google Internet Forums Unattended CD/DVD Guide
Cyborg_Dell
Create the following series of keys and values in the registry at [HKEY_CLASSES_ROOTCLSID] or [HKEY_LOCAL_MACHINESOFTWAREClassesCLSID]. The GUID, globally unique identifier, can be a random number, in this example "FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345" is used. See this article for more GUID examples.

1. Create a new key called [HKEY_CLASSES_ROOTCLSID{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}] and set (Default) to equal the name of the folder e.g. "My Folder".

2. Create a new sub-key under the main key called "DefaultIcon" (i.e. [HKEY_CLASSES...ABCD1DE12345}DefaultIcon]) and set (Default) to equal the filename for the icon you want to display e.g. "c:windowsmyicon.ico".

3. Create a new sub-key under the main key called "InProcServer32" (i.e. [HKEY_CLASSES...ABCD1DE12345}InProcServer32]) and set (Default) to equal "shell32.dll", also create a new String value called "ThreadingModel" and set it to "Apartment".

4. Create a set of sub-keys starting at the main key "ShellOpen My MenuCommand" (i.e. [HKEY_CLASSES...ABCD1DE12345}ShellOpen My FolderCommand]) and set (Default) to equal the command to execute when clicked, in this case explorer, e.g. "explorer /root,c:MyFolder". Change "Open My Folder" to command to display and "c:MyFolder" to the directory you want to use.

5. Create a set of sub-keys starting at the main key "ShellExPropertySheetHandlers{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}" (i.e. [HKEY_CLASSES...ABCD1DE12345}ShellExPropertySheetHandlers{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}])

6. Create a new sub-key under the main key called "ShellFolder" (i.e. [HKEY_CLASSES...ABCD1DE12345}ShellFolder]) and create a new Binary value called "Attributes" and set it to "00 00 00 00".

7. To place the folder (which is now a system folder) on the desktop add the following key:
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion
ExplorerDesktopNameSpace{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}]

8. To also place it in My Computer create this key:
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion
ExplorerMyComputerNameSpace{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}]

Now the folder cannot be deleted from the desktop or My Computer, nor can it be renamed other than removing the CLSID and the entries under NAMESPACE.

This beats TweakUI's "Remove Shortcut Arrows" any day....
XPerties
Please refer to http://xp.modrica.com/forum/showthread.php?s=&threadid=384 ...I have copyied and pasted (credit given) to there. I thank you for a great post.


-XPerties:D
TheUrbanMyth
QUOTE (XPerties @ Nov 6 2001, 03:54 PM) *
Please refer to http://xp.modrica.com/forum/showthread.php...mp;threadid=384 ...I have copyied and pasted (credit given) to there. I thank you for a great post.


-XPerties:D


Great Post is right. The effort is appreciated, I will be implementing this SOMEwhere just to try it out. It will come in handy I am sure. Keep up the great work!




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.