![]() TDiskScanList Example |
![]() ![]() ![]() |
dcMultiDiskScanner component.
|
property ExcludeList: TDiskScanList; // TList
|
The ExcludeList property is the list of searching rules that defines the locations and searching masks which you would like to exclude from search results.
|
|
You can set the excluding rules either at design and run-time of your application.
|
|
The ExcludeList property has the TDiskScanList type. To add the new rule to ExcludeList at run-time - call ExcludeList.AddPath(Location, IncludeSubfolders) method. To clear the list - call ExcludeList.Clear method. Please see an example for more details.
|
![]() |
ExcludeList.AddPath('*.bmp', False);
|
|
Plues, if the path information is not specified, the dcMultiDiskScanner will NOT search ANY folders to prepare list of previously excluded files before actual searching.
|
|
For example, you would like to find all files in root folder on disk C:
|
|
IncludeList.Clear; // clear list
|
IncludeList.AddPath('c:\*.*', True);
|
|
but would like to exclude all BMPs:
|
|
ExcludeList.Clear;
|
ExcludeList.AddPath('*.bmp', True);
|
// ^-- if you specify the path
|
// here, i.e: "C:\*.*", the dcMultiDiskScanner will
|
// scan entire disk to exclude files before actual
|
// search, and will take a lot of time to prepare
|
// the pre-excluded list
|
![]() |
ExcludeList.AddPath('C:\Bitmaps\*.bmp', True);
|
IncludeList property.
|