Session.DuplicateFile Method

Duplicates remote file to another remote directory or name.


public void DuplicateFile(string sourcePath, string targetPath)
Public Sub DuplicateFile(sourcePath As String, targetPath As String)


Name Description
string sourcePath Full path to remote file to duplicate.
string targetPath Full path to new location and name1 to duplicate the file to.


Exception Condition
InvalidOperationException Session is not opened.
SessionLocalException Error communicating with
See the exception documentation for details.
SessionRemoteException Session has failed.
Command has failed.
See the exception documentation for details.
TimeoutException Timeout waiting for to respond.
  1. The name must be included or the target page has to end with a slash.Back

Last modified: by martin