ImageGear Professional for Windows ActiveX
RenameFile Method

Description:

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.

Syntax:

      RenameFile(OldName As String, NewName As String)

Parameters:

Name Description
OldName The name of the file/directory to be renamed.
NewName The new name of the file/directory.

Return Value:

N/A

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback