.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 |
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, _ |
C# |
|---|
public bool FileRename( string oldFilePath, |
Visual C++ |
|---|
public: bool FileRename( |
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