ImageGear for .NET
RenameFile Method
See Also  Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : RenameFile Method




oldName
The name of the file/directory to be renamed.
newName
The new name of the file/directory.

Glossary Item Box

This method renames (and optionally moves) a file or directory. Absolute and relative path names are supported.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

oldName
The name of the file/directory to be renamed.
newName
The new name of the file/directory.

Remarks

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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.