История страницы
...
Get file info Version 12 (net)
Группа действий: Файловая система
Описание
Action group: File system
...
Description
This action is used to get the properties of a fileДанное действие предназначено для получения свойств файла.
Действие "Получить информацию о файле" возвращает размер файла по принципу:
The "Get file info" action returns the file size based on the principle:
- If the size is less than 1 mb, a value in b/kb is returned normally (example: 10 b or Если размер менее 1 mb, то возвращается значение в b/kb нормально (пример: 10 b или 967 kb).
- Если размер более If the size is more than 1 mb, то значение всегда округляется в меньшую сторону. Например: если файл размером 10,88 mb, то результат the value is always rounded down. For example: if the file size is 10.88 mb, the result is 10 mb.
...
Action icon
...
Parameters
...
Input parameters
- Поле Field "Файл". Путь к файлу, информацию о котором необходимо получить.
Выходные параметры
- File". Path to the file whose information is to be retrieved.
Output parameters
ResultРезультат
- Имя - Имя указанного файлаName - The name of the specified file.
- Расширение - Расширение указанного файла.
- Имя с расширением -Имя указанного файла с расширением.
- Размер - Размер указанного файла. Считывается в килобайтах.
- Дата создания - Дата создания указанного файла.
- Дата изменения - Дата изменения указанного файла.
Настройки
...
Свойство
...
Описание
...
Тип
...
Пример заполнения
...
Обязательность заполнения поля
...
Параметры
...
Файл
...
Путь к файлу, информацию о котором необходимо получить.
...
Путь к файлу
...
C:\Users\Тест.txt
...
Да
...
Результаты
...
Имя
...
Имя указанного файла
...
Строка
...
...
...
Расширение
...
Расширение указанного файла
...
Строка
...
...
...
Имя с расширением
...
Имя указанного файла с расширением
...
Строка
...
...
...
Размер
...
Размер указанного файла
Считывается в килобайтах
...
Число
...
...
...
Дата создания
...
Дата создания указанного файла"
...
Дата
...
...
...
Дата изменения
...
Дата изменения указанного файла
...
Дата
...
...
- Extension - The extension of the specified file.
- Name with extension - The name of the specified file with extension.
- Size - The size of the specified file. It is read in kilobytes.
- Date of creation - The date the specified file was created.
- Date of change - The date the specified file was modified.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
File | The path to the file to get information about. | Robin.FilePath | Yes | |
Results | ||||
Name | The name of the specified file. | Robin.String | ||
Extension | The extension of the specified file. | Robin.String | ||
Name with extension | The name of the specified file with the extension. | Robin.String | ||
Size | The size of the specified file. It is calculated in kilobytes. | Robin.Numeric | ||
Date of creation | Date of creation of the specified file. | Robin.DateTime | ||
Date of change | The date the specified file was modified. | Robin.DateTime |
Special conditions of use
None.
Example of use
Task
Get the size of the "Log.txt" file.
Solution
Use the "Get file info" action.
Implementation
- Move the "Get file info" action to the workspace.
- Set the action parameter of
Особые условия использования
Отсутствуют.
Пример использования
Задача
Получить размер файла "Log.txt".
Решение
Воспользоваться действием "Get file info".
Реализация
- Перенести действие "Get file info" на рабочую область.
Заполнить параметр действия "Get file info". - Нажать на кнопку "Старт" в верхней панелиClick on the "Start" button in the top panel.
Результат
Result
The program robot worked successfully. The action returned 6 file propertiesПрограммный робот отработал успешно. Действие вернуло 6 свойств файла: "Name", "Extension", "Name with extension", "Size", "Date of creation", "Date of change". Размер файла указан без единицы измерения и рассчитан в килобайтахThe file size is specified without unit and is calculated in kilobytes.