История страницы
...
Search file Version 11 (net)
Группа действий: Файловая система
Описание
Действие выполняет поиск файла в системе по шаблону. Возвращает полный путь к найденному файлу.
Иконка
Параметры
Входные параметры
Путь к папке - Путь к папке, в которой необходимо выполнить поиск.
Имя файла - Имя файла с расширением, который необходимо найти. Для поиска можно использовать маски со специальными символами: «?» – 1 символ или его отсутствие, «*» – любое количество символов.
Рекурсивно - Если значение «true», то поиск будет выполняться во вложенных папках, иначе – только в указанной.
Выходные параметры
Возвращает список путей файлов, удовлетворяющих условиям поиска. Если файлы не были найдены, результат - пустая коллекция
Настройки
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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Folder path | The path to the folder in which to search |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Путь к папке
Robin.FolderPath | C:\doc\img |
Yes |
Имя файла
File name | The 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 |
Рекурсивно
Recursive | If the value is «true», then the search will be performed in subfolders, otherwise - only in the specified one. | Robin.Boolean | true |
No |
Results |
Результат
Result | List of file paths that match the search conditions. If no files were found, the result is an empty collection | Robin.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
...
- Move the "Search file" action to the workspace
- Set the parameters of the "Search file" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The file was found in the folder.
...
Результат
Программный робот отработал успешно. Файл найден в папке.