.NET Framework Class Library
File.FileRename Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.FileRename Method

Renames a file.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function FileRename ( _

oldFilePath As String, _
newFilePath As String _
) As Boolean

C#

public bool FileRename(

string oldFilePath,
string newFilePath
)

Visual C++

public:

bool FileRename(
String^ oldFilePath,
String^ newFilePath
)

JavaScript

function fileRename(oldFilePath, newFilePath);

Parameters

oldFilePath

Type: System.String
the file to be renamed

newFilePath

Type: System.String
full path name of the new file

Return Value

TRUE if the command succedeed, FALSE otherwise

Remarks

See Also

File Class

File Members

MwPDMApi Namespace