FILE.Rename (FB; Prefix filrn)

This function block modifies the file name and is optional for the different targets. This does not work if the file is open via ⇘ FILE.Open. Whether this function block is implemented or not is explicitly stated and encoded in the return value of the function ”FILE.GetProperty”(see description of ⇘ FILE.GetProperty). The function block cannot be used to move files or directories!

Input:

xExecute

BOOL

 

sFileNameOld

CAA.FILENAME

Old file name

sFileNameNew

CAA.FILENAME

New file name

Output:

xDone

BOOL

 

xBusy

BOOL

 

xError

BOOL

 

eError

FILE.ERROR

Error ID