Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

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:

  1. 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).
  2. Если размер более 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

  1. Поле Field "Файл". Путь к файлу, информацию о котором необходимо получить.

Выходные параметры

  1. File". Path to the file whose information is to be retrieved.

Output parameters

ResultРезультат             

  1. Имя - Имя указанного файлаName - The name of the specified file.
  2. Расширение - Расширение указанного файла.
  3. Имя с расширением -Имя указанного файла с расширением.
  4. Размер - Размер указанного файла. Считывается в килобайтах.
  5. Дата создания - Дата создания указанного файла.
  6. Дата изменения Дата изменения указанного файла.

Настройки

...

Свойство

...

Описание

...

Тип

...

Пример заполнения

...

Обязательность заполнения поля

...

Параметры

...

Файл

...

Путь к файлу, информацию о котором необходимо получить.

...

Путь к файлу

...

C:\Users\Тест.txt

...

Да

...

Результаты

...

Имя

...

Имя указанного файла

...

Строка

...

 

...

 

...

Расширение

...

Расширение указанного файла

...

Строка

...

 

...

 

...

Имя с расширением

...

Имя указанного файла с расширением

...

Строка

...

 

...

 

...

Размер

...

Размер указанного файла

Считывается в килобайтах

...

Число

...

 

...

 

...

Дата создания

...

Дата создания указанного файла"

...

Дата

...

 

...

 

...

Дата изменения

...

Дата изменения указанного файла

...

Дата

...

 

...

 

  1. Extension - The extension of the specified file.
  2. Name with extension - The name of the specified file with extension.
  3. Size - The size of the specified file. It is read in kilobytes.
  4. Date of creation - The date the specified file was created.
  5. Date of change - The date the specified file was modified.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FileThe path to the file to get information about.Robin.FilePath
Yes
Results
NameThe name of the specified file.Robin.String

ExtensionThe extension of the specified file.Robin.String

Name with extensionThe name of the specified file with the extension.Robin.String

SizeThe size of the specified file. It is calculated in kilobytes.Robin.Numeric

Date of creationDate of creation of the specified file.Robin.DateTime

Date of changeThe 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

  1. Move the "Get file info" action to the workspace.
    Image Added

  2. Set the action parameter of

Особые условия использования

Отсутствуют.

Пример использования 

Задача

Получить размер файла "Log.txt".  

Решение

Воспользоваться действием "Get file info".

Реализация

  1. Перенести действие "Get file info" на рабочую область.
    Image Removed
    Заполнить параметр действия "Get file info". 


  2. Нажать на кнопку "Старт" в верхней панели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.