This method renames a file that exists on the FTP server.
[Visual Basic]   [ Boolean = ]imagekitcontrolname.File.FTPRenameFileEx(RemoteOldFilePath As String, RemoteNewFile As String)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetFile().FTPRenameFileEx(LPCTSTR RemoteOldFilePath, LPCTSTR RemoteNewFile)

Parameters

Name Explanation
RemoteOldFilePath The old name of the file (The name and path of the file prior to renaming)
RemoteNewFile The new name of the file (DOES NOT INCLUDE PATH)

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

the FTPRenameFileEx method renames a file that exists on the FTP server. This method can only be used after the FTPConnect method has connected to the FTP server. This method can only be executed from the client computer. It does not operate on the server.

Example Code:

Visual Basic
If ImageKit1.File.FTPConnect("www.newtone.co.jp", "", 21, True, "User", "Password") = False Then Exit Sub
Call ImageKit1.File.FTPRenameFileEx("images/001.jpg", "002.jpg")
Call ImageKit1.File.FTPDisconnect()

Visual C++
if (ImageKit1.GetFile().FTPConnect("www.newtone.co.jp", "", 21, TRUE, "User", "Password") == FALSE) return;
ImageKit1.GetFile().FTPRenameFileEx("images/001.jpg", "002.jpg");
ImageKit1.GetFile().FTPDisconnect();

 

The ImageKit8 ActiveX is a product created by Newtone Corporation