OverviewExamples
Searches for files on the local system.
(string) The path to the folder that you want to search in.
(string) The name of the file that you want to search for. You can use the * and ? wildcards in this field to search for files that match a specific pattern.
(boolean) Whether to recurse through subfolders during the search:
VALUE |
DESCRIPTION |
true |
Recurse. |
false |
Don't recurse. (Default) |
(boolean) Whether to include (in the result) all folder paths that were encountered during the file search.
(function) The name of a function that will be called whenever progress is made in the find operation. (You can use this callback function to display the progress of the find operation in your own custom way.)
Note: If CallbackFunction is set to nil, then the progress information will be sent to the built-in status dialog, assuming it is currently visible. (You can show or hide the status dialog with a StatusDlg.Show or StatusDlg.Hide action.)
The callback function must be able to receive the following parameters:
(string) The current path being searched.
The callback function should return a boolean value (true or false) indicating whether the find operation should continue:
VALUE |
DESCRIPTION |
true |
Continue with the find operation. |
false |
Stop the find operation as soon as possible. |
(function) The name of a function that will be called whenever a file is found that matches the search criteria. You can use this function to exit the search operation based on the file that was found; for example, if you wanted to exit the search after the first file was found.
The callback function must be able to receive the following parameters:
(string) The path to the file that was found.
The callback function should return a boolean value (true or false) indicating whether the find operation should continue:
VALUE |
DESCRIPTION |
true |
Continue with the find operation. |
false |
Stop the find operation as soon as possible. |
(table) A table containing the paths to all of the files that were found. If no files were found or an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.
Note: If IncludeFolders is true, the result will always include the folders that were encountered during the search.
When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions