Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

FileRename

  • Last UpdatedJul 18, 2023
  • 1 minute read

Renames a file.

Syntax

FileRename(Oldname, Newname)

Oldname:

The original name of the file.

Newname:

The new name of the file.

Return Value

0 (zero) if successful, otherwise an error is returned.

FileCopy, FileDelete

Example

! Rename REPORT.TXT as REPORT.OLD.
FileRename("C:\Data\Report.Txt","C:\Data\Report.Old");

See Also

File Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in