How to rename a remote file in c#?

Advertisement

syedshakeer
Joined:
Posts:
1

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);

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum