File.Rename

Navigation:  Libraries > CT File Access > Function Blocks - File Services >

File.Rename

Previous pageReturn to chapter overviewNext page

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!

Inputs:

xExecute

 

BOOL


sFileNameOld

CAA.FILENAME

Old file name

sFileNameNew

CAA.FILENAME

New file name

 

Outputs:

xDone

 

BOOL

 

 

xBusy

BOOL

 

xError

BOOL

 

 

eError

FILE.ERROR

Error ID