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

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   Cyborg_Dell 

  • Group: Members
  • Posts: 9
  • Joined: 03-November 01

Posted 06 November 2001 - 09:18 AM

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


#2 User is offline   XPerties 

  • MSFN OG Senior
  • Group: Patrons
  • Posts: 2,989
  • Joined: 18-August 01

Posted 06 November 2001 - 01:54 PM

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

#3 User is offline   TheUrbanMyth 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 29-July 08

Posted 30 July 2008 - 12:38 PM

View PostXPerties, on Nov 6 2001, 03:54 PM, said:

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!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy