IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> How To : Add Custom Folder to My Computer or the Desktop
Cyborg_Dell
post Nov 6 2001, 09:18 AM
Post #1





Group: Members
Posts: 9
Joined: 3-November 01
Member No.: 698



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....
Go to the top of the page
 
+Quote Post
XPerties
post Nov 6 2001, 01:54 PM
Post #2


I am root, obey my authority!
Group Icon

Group: Patrons
Posts: 3139
Joined: 18-August 01
From: New Jersey
Member No.: 12
Country Flag


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
Go to the top of the page
 
+Quote Post
TheUrbanMyth
post Jul 30 2008, 12:38 PM
Post #3


Newbie


Group: Members
Posts: 19
Joined: 29-July 08
From: Ontario
Member No.: 203005
OS: XP Pro x86
Country Flag


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!
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 8th January 2009 - 07:58 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy