Search file Version 11 (net)

Action group: File system


Description

The action searches for a file in the system according to a template. Returns the full path to the found file.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Folder pathThe path to the folder in which to searchRobin.FolderPathC:\doc\imgYes
File nameThe name of the file with extension to be found. To search, you can use masks with special characters: «?» – 1 character or its absence, «*» – any number of characters.Robin.String
Yes
RecursiveIf the value is «true», then the search will be performed in subfolders, otherwise - only in the specified one.Robin.BooleantrueNo
Results
ResultList of file paths that match the search conditions. If no files were found, the result is an empty collectionRobin.Collection

Special conditions of use

None.

Example of use 

Task

In the folder you need to find a file named "Log.txt".

Solution

Use the "Search file" action. 

Implementation

  1. Move the "Search file" action to the workspace


  2. Set the parameters of the "Search file" action. 

  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The file was found in the folder. 

  • Нет меток