Documentation

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 can have a maximum of 260 characters: The file part can have at most 12 characters: eight for the file name, one for the period, and at most three for the file extension. A file name longer than eight characters is truncated to six characters followed by '~1'.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?