Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

syedshakeer

How to rename a remote file in c#?

Hi,

I have a file name abc.txt, i want to make a duplicate copy of abc.txt with different file name xyz.txt with in the same folder?

How to do this in C#
string sourceFile="/remote/folder1/abc.txt"
string destinationFile="/remote/folder1";

session.MoveFile(sourceFile, destinationFile);