22.11.7.5 Change File Name

Modifies the file name. Parameter 1 designates the CF Card data folder. Parameter 2 designates the original file name. Parameter 3 designates the new name.

_CF_rename/_SD_rename / _USB_rename (Folder name, File name, New file name)
The file name can also be specified indirectly using internal addresses.

Example expression:

Defining the file name with a text string

_CF_rename ("\DATA","DATA0001.BIN","DATA1234.BIN")

In the above example, "\DATA\DATA0001.BIN" file is renamed "\DATA\DATA1234.BIN".

Defining the file name with an internal device

_CF_rename ("\DATA", [w:[#INTERNAL]LS0100], [w:[#INTERNAL]LS0200])

By storing the file name in LS0100 and LS0200, you can indirectly specify file names.
Store the file name in LS0100 through LS0106 as follows.

For example, when Text Data Mode = 1

The above expression renames the file from "\DATA\DATA0001.BIN" to "\DATA\DATA1234.BIN".