diskscanner Execute method
Return to Introduction  Previous page  Next page
Applies to
dcDiskScanner and dcMultiDiskScanner components.  

Declaration
function Execute: Boolean; // returns False if Busy  

Description
The Execute method begins the scanning process, starting the search thread. Every time when the DiskScanner found files that matches to specified searching criteria, OnFileFound event occurs. When DiskScanner finished scanning of folder and going to subfolder, OnScanFolder even occurs. When DiskScanner done searching - OnScanDone occurs.  
 
To terminate the scanning process - call Stop method.  

Note
iiinfo If scanning already in progress but you call Execute method again, the function will returns False. To determinate whether the searching is in progress - use Busy property.  

See also
Stop method; OnFileFound, OnScanFolder and OnScanDone events;  
Suspended and WaitThread properties.