Skip to main content

Move File

Use this command to move an existing file. This command works with absolute and relative paths.

The allowed paths for the MOVE 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 moved are defined by the EXCLUDED_FILEMAINTENANCE_FILES parameter in the same file. These parameters only apply when they are set.

Syntax:

MOVE FILE FROM "SourceFile" TO "[Destination]\[FileName]" [Overwrite]

where:

  • SourceFile is the name of the file to be moved. The source file can be specified by its full path or by the name along if it is located in the working directory.
  • Destination is optional and is used to specify the location where the file should be moved to. If it’s not specified the SourceFile location will be used, unless the SourceFile location is not specified then it will be moved to the current working directory. If Destination is not specified, the FileName must be.
  • FileName is optional and is used to name the moved file. If the FileName is not used, the file will be moved with the same name. If FileName is not specified, then the Destination must be.
  • Overwrite is optional and specifies whether to overwrite a file that already exists with the same name.

Syntax example:

MOVE FILE FROM "logs\export\export.log" TO "logs\export\backup\" OVERWRITE

See also

Was this article helpful?

We're sorry to hear that.