Click or drag to resize

FileSystemRename Method

Renames a file or directory.

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

Parameters

oldName
Type: SystemString
The file or directory to rename.
newName
Type: SystemString
The new name of the file or directory.
overwrite
Type: SystemBoolean
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