Downloading files |
To download a file use any of the available Scp.Download methods.
Example
[C#]
// define remote download directory
string remoteDir = "/home/user/";
// define file in remote directory to download
string remoteFile = "test.txt";
// define local directory to download to
DirectoryInfo di = new DirectoryInfo("c:/tmp");
scp.LocalDir = di;
// download file
scp.Download(remoteDir,remoteFile);
[VB]
' define remote download directory
Dim remoteDir As String = "/home/user/"
' define file in remote directory to download
Dim remoteFile As String = "test.txt"
' define local directory to download to
Dim di As DirectoryInfo = New DirectoryInfo("c:/tmp")
scp.LocalDir = di
' download file
scp.Download(remoteDir, remoteFile)