Uploading files

Top  Previous  Next

To upload a file use any of the available Scp.Upload methods.

 

Example

 

[C#]

 

// define file to upload

FileInfo file = new FileInfo(localFile);

 

// define remote path with ending path delimiter

string path = "/home/user/"

 

// upload file

scp.Upload(file,path);

 

[VB]

 

' define file to upload

Dim file As FileInfo = New FileInfo(localFile)

 

' define remote path with ending path delimiter

Dim path As String = "/home/user/"

 

' upload file

scp.Upload(file, path)