Click or drag to resize

FileSystem.Rename Method

Renames a file or directory.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.5.0.0.0.156 (.NET 4.6.2, x86)
Syntax
public void Rename(
	string oldName,
	string newName,
	bool overwrite
)

Parameters

oldName
Type: System.String
The file or directory to rename.
newName
Type: System.String
The new name of the file or directory.
overwrite
Type: System.Boolean
Determines if this will allow the rename to overwrite a file or directory with the same name.
Remarks
Files and directories in the root directory cannot be moved or renamed.
See Also