xPCFileInfo.Rename

Rename file

Syntax

public xPCFileInfo Rename(string newName)

Description

Class: xPCFileInfo Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCFileInfo Rename(string newName) changes file name to newName. newName is a character string. This method returns the xPCFileInfo object.

A fully qualified file name in the operating system on the target computer can have a maximum of 260 characters. If the file name is longer than eight-dot-three format (eight character file name, period, three character extension), the operating system represents the file name in truncated form (for example, six characters followed by '~1'). MATLAB commands can access the file using the fully qualified file name or the truncated representation of the name. Some block parameters, such as the Scope block filename parameter, require 8.3 format for the file name.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b