[Visual Basic] Public Function
FtpRenameFile(ByVal remoteHost As String, ByVal oldRemotePath As
String, ByVal newRemotePath As String) As Boolean
[C#] public bool FtpRenameFile(string
remoteHost, string oldRemotePath, string newRemotePath);
Parameters
remoteHost
Domain name in DNS style, or IP address
oldRemotePath
The remote URI
newRemotePath
The new remote filename
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The FtpRenameFile method renames a file on an FTP server specifying the host name, the remote URI and the new remote filename. This method is enabled for the FTP proptocol.
Example
[Visual Basic.NET] Dim Ret As Boolean 'Username and password ImageKit.File.FtpCredentials = New NetworkCredential("user", "password") 'Renames the file Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", "test/test1.jpg") [Visual C#.NET] bool Ret; //Username and password ImageKit.File.FtpCredentials = new NetworkCredential("user", "password"); //Renames the file Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", "test/test1.jpg");
See Also
ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit