Sort Order And Special Folder

Ask, publish your queries, articles, problems etc related with any programming, scripting, language.
Forum rules
Read : Boardwide Rules and Regulation. Note: All views/post within are the opinions/work of the respective posters only.

Sort Order And Special Folder

Postby Admin » December 24th, 2007, 11:02 pm



WARNING !

This Tutorial Involve Playing With The Windows Registry Which Is Not Recommended for novice user.If you mess up the things then your windows may even become unbootable.Please take care of that.


1.Restoring the Sort Order

If dragging and dropping on the Start menu is not disabled then you can sort all Programs menu items. Windows XP also sometimes adds new shortcuts to the bottom of the all Programs menu.Finding the program you want to run is difficult when the sort order of the Start menu is disordered.

Go to
Code: Select all
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder

sort order of the Favorites menu and Start menu now can be seen in the subkeys.The subkey Favorites contains the sort order of the Favorites menu. The subkey Start Menu contains the sort order of the classic Start menu, and the subkey Start Menu2 contains the sort order of the new Start menu.

You can remove any of them to resort the corresponding menu in alphabetical order.

For example, to restore the All Programs menu to alphabetical order, remove the subkey Start Menu2. To restore the Favorites menu in both Windows Explorer and Internet Explorer, remove the subkey Favorites.

2.Add a custom folder to My Computer or The Desktop

This hack will Create a custom folder - like the special My Document folder - and one that cannot be deleted or renamed!
Image
Step 1
In the registry editor navigate to
Code: Select all
HKEY_CLASS_ROOT(HCR)\CLSID

Create a new key with a Globally Unique Identifier {GUID}.Examples of GUIDs are

Code: Select all
{A34EF940-4223-437e-B54B-F09E86F6E946}
{1E854EF7-5415-4aa2-B1EB-01F98C5EC8B2}
{CAA2C044-026B-48c0-A2CA-ED6DC1629016}
{207E8C61-8BA0-4772-8B5E-FE0F38C6B662}


Step 2
Set the value of the "(default)" Setting for this key to the name of the folder, say "Private Place".Create a new subkey under the main key and call it
Code: Select all
DefaultIcon
Set the value of "(DefaultIcon)" to the file name and path of the icon file you want to use for the folder, for example
Code: Select all
C:\Ico\Vista\private.ico
If you don't specify a path to the icon file then, Windows Will use its default folder icon instead.

Step 3
Create another subkey under the main key called
Code: Select all
InprocServer32
Set the default value here to the
Code: Select all
shell32.dll
Create another string value called
Code: Select all
ThreadingModel
and set its value to
Code: Select all
Apartment
There 's one more: create another subkey called
Code: Select all
Shell\Open My Folder\Command
under the main key and set the default value
Code: Select all
explorer /root,C:\Private Place


Step 4
There's more keys to be created
Code: Select all
ShellEx\PropertySheetHandlers\{207E8C61-8BA0-4772-8B5E-FE0F38C6B662}
and
Code: Select all
ShellFolder
Under this key, create a new binary value called
Code: Select all
Attributes
With the value
Code: Select all
00 00 00 00


Image
Step 5
To place the folder in My Computer,
Go to
Code: Select all
HLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace

and add
Code: Select all
{207E8C61-8BA0-4772-8B5E-FE0F38C6B662}

To place the folder on desktop,
Code: Select all
HLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace

and add
Code: Select all
{207E8C61-8BA0-4772-8B5E-FE0F38C6B662}


Image
Now go to My Computer and Desktop,and you'll see a new custom folder!
Follow The Rules. Be Yourself. Trust Yourself. :D
User avatar
Admin
Gyan Pitara Founder
Gyan Pitara Founder
 
Posts: 196
Joined: December 22nd, 2007, 11:55 pm
Location: Gurgaon, India
Online: 11d 3h 55m 25s
Operating System: Windows XP
Browser: Google Chrome
Gender: Male
MCA: Alumni

Return to Programming & Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests