Cyborg_Dell Posted November 6, 2001 Share Posted November 6, 2001 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 More sharing options...
XPerties Posted November 6, 2001 Share Posted November 6, 2001 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 Link to comment Share on other sites More sharing options...
TheUrbanMyth Posted July 30, 2008 Share Posted July 30, 2008 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:DGreat 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now