Jump to content

How To : Add Custom Folder to My Computer or the Desktop


Cyborg_Dell

Recommended Posts

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....

Link to comment
Share on other sites


  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...