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

function Execute: Boolean; // returns False if Busy  

The Execute method begins the scanning process, starting the search thread. Every time when the MultiDiskScanner 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.  

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;  
Suspended and WaitThread properties.