ebswift.com logo
Are you a Wealthy Affiliate yet?
Learn how to Make Money Online from two Successful internet marketers who are willing to share their secrets.

Content

Alternative Commenting/Sorting Shell Extension

download (VC++ 6) project

download simple installer
(Make a new folder and unzip the contents.  Then double-click on the batch file.  View the included readme.txt for more information)

Requirements : Windows 2000 or Windows XP and Microsoft Visual C++ 6

Custom Sort Columns in Windows Explorer

This project is a very minor modification to an article by JonathanLivingstone that can be found at this web address : http://www.codeproject.com/shell/SHDireSizeColumn.asp.

The specific purpose of my modification was so that we could create project work unit folders and have related codes such as helpdesk case numbers and related project codes all in the one filename, yet be able to quickly find any of the embedded codes in the whole directory structure quickly.  You could do a windows explorer search, but I don't think you can get a much simpler or cheaper solution than what's presented here.  This shell extension automatically grabs your hyphen-separated codes out of the folder name and presents them (optionally) as separate column descriptors which explorer then has the built-in ability to sort on.

The project in it's original form retrieves the total size of the contents of a directory so that it can be shown in a column in detail view.  My modification strips words out of a directory name that can be used as an alternative sort in three optional columns called Sort1, Sort2 and Sort3 in detail view.  The shell extension retrieves the first word or sentence following the first hyphen in the current directory name for Sort1, and repeats the process on subsequent hyphen-separated words or sentences.  Try it and you'll soon get the gist.  You view the columns by right-clicking the column-headings in detail view and selecting Sort1, Sort2 and Sort3 under More.

The source code is really rough, I haven't even changed the project name or class names and the new addition is poorly commented.  But it works and can be easily modified to suit your own needs, the source speaks for itself.  Also included in the project is the code for reading/writing INI files which was written by Aisha Ikram, published here : http://www.codeguru.com/Cpp/W-P/files/inifiles/article.php/c4455/ which gives you an alternative method for storing Sort information.

Modify the project to your heart's content, but please do not claim ownership of the code because I have borrowed it from the above-mentioned authors.