Home All Groups Group Topic Archive Search About

FTPWebrequest.RenameTo property usage

Author
12 Sep 2006 8:56 PM
MycGyver
Has anyone seen a sample using this property.  I'm trying to rename a file on
an FTP site and I'm getting an access error.

"The remote server returned an error: (550) File unavailable (e.g., file not
found, no access)."

The connection is ok.  If I change to the GetDateTimestamp method the file
is found correctly....

Code Snippet:

objRequest.Method = WebRequestMethods.Ftp.Rename

'objRequest.Method = WebRequestMethods.Ftp.GetDateTimestamp

objRequest.RenameTo = strNewFileName

Dim objResponse As FtpWebResponse = CType(objRequest.GetResponse(),
FtpWebResponse)

AddThis Social Bookmark Button