NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_sysfilerename.nxc

This is an example of how to use the SysFileRename function along with the FileRenameType structure.

task main()
{
frArgs.OldFilename = "myfile.txt";
frArgs.NewFilename = "myfile2.txt";
SysFileRename(frArgs);
if (frArgs.Result == LDR_SUCCESS) { /* do something */ }
}