Skip to main content

Rename File

Use this command to change the name of an existing file. This command works with absolute and relative paths.

The allowed paths for the RENAME FILE command are specified by the PERMITTED_FILEMAINTENANCE_PATH parameter in the lv_af.cfg file, located in the working directory of the lv_af.exe. Files that cannot be renamed are defined by the EXCLUDED_FILEMAINTENANCE_FILES parameter in the same file. These parameters only apply when they are set.

Syntax:

RENAME FILE FROM "Source" TO "NewName"

where:

  • Source is the name of the file that will be renamed.
  • NewName is the name that the file will be renamed to.

Syntax example:

RENAME FILE FROM "logs\export\export.log" TO "oldexport.log"

See also

Was this article helpful?

We're sorry to hear that.