Skip to main content

TcxCustomShellBrowserDialog.Path Property

Specifies the path to the current shell item (standard or virtual shell item).

Declaration

property Path: string read; write;

Property Value

Type
string

Remarks

A standard shell item’s path can be specified in two ways:

  • as a full path, including a sequence of all folders required for accessing the required shell item from the shell root.

Example:

cxShellBrowserDialog1.Path := 'C:\Documents and Settings\Administrator\My Documents\My Pictures';
  • as a relative path, providing access to shell items within a specified folder.

Example:

cxShellBrowserDialog1.Path := 'My Pictures';

In addition to standard shell items, the Path property allows users to access virtual shell items which do not use physical storage. Examples of virtual shell items include:

  • Network printers
  • Other networked computers
  • Control Panel applications
  • Recycle Bin

To access virtual shell items, specify one of the following path prefixes before the virtual shell item name:

The code snippet below shows how to access the “Recycle Bin” virtual shell item using both the absolute and relative virtual path prefixes.

cxShellBrowserDialog1.Path := cxShellObjectInternalAbsoluteVirtualPathPrefix + '\Recycle Bin';
cxShellBrowserDialog1.Path := cxShellObjectInternalRelativeVirtualPathPrefix + '\Recycle Bin';
See Also