Renaming a file

Top  Previous  Next

You can rename a file using the RenameFile method providing the current file name and the new file name. All filenames are relative to your current remote directory.

 

Example

 

[C#]

// rename file image.gif to image.gif.old

myFtp.RenameFile("image.gif", "image.gif.old");

 

 

[Visual Basic]

' rename file image.gif to image.gif.old

myFtp.RenameFile("image.gif", "image.gif.old")

 

 

See also

 

Setting your remote directory