Shell Folders Unit



This unit provides various components, classes and routines for handling Windows shell folders. It contains:


The unit is compatible with Delphi 3 to 7. It has been tested in Delphi 4, 6 and 7.


In these instructions $(DELPHI) is to be taken to represent the path where the appropriate version of Delphi is installed.

  1. Unzip the downloaded zip file into a folder of your choice, preserving the directory structure. The following files will be extracted:
  2. Copy PJShellFolders.pas, PJShellFolders.dcr and PJShellFoldersDsgn.pas to where you wish to install into Delphi. This will probably be a sub-folder of $(DELPHI)\lib.
  3. Install the components and property editor by chosing the Component | Install Component menu option to display the Install Component dialog box. Then:
  4. If you wish you can delete PJShellFolders.pas and PJShellFoldersDsgn.pas from the place where you copied them (but ensure that the .dcu files are not deleted).
  5. The simplest way to install the help file (PJShellFolders.hlp) is to use my Component Help Installer Expert. If you prefer to install manually, this article explains the process. When using Delphi 6 or 7 PJShellFolders.als should also be copied to the $(DELPHI)\Help folder.
  6. The supplied demo program can be loaded into Delphi and compiled and run as required.

Known Bugs and Fixes

The following is a list of known bugs along with notes of the releases where they were fixed:

If you wish to report a bug please use my website contact page and describe the bug clearly, specifying "PJShellFolders" and the version of the component you are using.

Update History

Release 2.2.1 of 09 January 2005
PJShellFolders v2.2.1 of 09 January 2005

Release 2.2 of 22 August 2004
PJShellFolders v2.2 of 22 August 2004

Release 2.1 of 29 Jul 2003
PJShellFolders v2.1 of 29 Jul 2003

Release 2.0 of 15 Jun 2003
PJShellFolders v2.0 of 15 Jun 2003

Release 1.0 of 06 Apr 2001
PJShellFolders v1.0 of 01 Apr 2001

License & Disclaimer

This source code is subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this program except in compliance with the License. You may obtain a copy of the License at

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is Shell Folders Unit.

The Initial Developer of the Original Code is Peter Johnson (

Portions created by the Initial Developer are Copyright © 2001-2005 Peter Johnson. All Rights Reserved.


Philippe Lucarz
Ryan Fischbach

About the Author

I'm Peter Johnson - a hobbyist programmer living in Ceredigion in West Wales, UK. I write mainly in Delphi. My programs are available for download on my web-site:

I can be contacted via the contact page of my website.