ImageGear Professional v18.2 > API Reference Guide > TWAIN Component API Reference > TWAIN Component Objects > IGTwainCtl Control > IGTwainCtl Methods > RenameFile Method |
Renames (and optionally moves) a file or directory. Absolute and relative path names are supported. A file may not be overwritten with this command. If an Application wishes to do this, it must first delete the unwanted file, then issue the rename command. Filenames in the root directory cannot be moved or renamed.
Use OpenSource to select the desired Data Source, prior to calling this method.
RenameFile(OldName As String, NewName As String)
Name | Description |
---|---|
OldName | The name of the file/directory to be renamed. |
NewName | The new name of the file/directory. |
N/A