DocsFileFile Info

Read file or folder metadata in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

File Info reads metadata (exists, size, name, times...) of a file/folder into a group of prefixed variables.

Dialog & quick setup

RunMacro File Info command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the File Info command in RunMacro.
  1. Add a File › File Info command.
  2. Enter the path to read.
  3. (Optional) Restrict the kind (auto/file/folder).
  4. (Optional) Change the output variable prefix (default file_). Save.

Options reference

Target path

The file or folder to inspect.

Target kind

auto, file, or folder — errors if the kind does not match.

Output prefix

Prefix for the result variables, e.g. file_ yields file_size, file_name...

Clear on missing

If on and the path is missing, the variables are cleared and {prefix}exists = false.

Modes & when to use

Desktop Mode

Operates on the local file system.

Browser Mode

Best for

  • Branch on a file size or modified time.
  • Get the name/extension to build another file name.
  • Check whether a path exists and is a file or folder.

Use an alternative when

  • You only need existence — IF File Exists is simpler.
Before you run
  • The path exists (otherwise branch on the exists flag).

Example workflow

Example: only process non-empty files

  1. File Info: path {current_file}, prefix f_.
  2. Use IF Variable to compare {f_size} and branch.
Expected result: The prefixed variable group is filled with the path metadata.

Tips & limitations

Time variables use ISO format (e.g. 2026-07-24T10:30:00), convenient for string comparison.
  • Size is a byte count as a string; convert to a number for math.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.