Code Examples
These code snippets can be copied and pasted into your project.
| Code Snippet |
Description |
Get A File |
Demonstrates how to download a file with progress and logging in a windows forms application. |
Put A File |
Demonstrates how to upload a file with progress and logging in a windows forms application. |
Get Multiple Files |
Demonstrates how to download multiple files with minimal code. |
Receive and Display Data |
Demonstrates how to receive and display data asynchronously, without blocking the UI. |
Sample Projects Included
The samples are fully working applications demonstrating all PowerTCP SSH and SFTP for .NET components in C#, VB.NET, VB6 and VC++/CLI, and include complete source code.
| .NET Sample Name |
Sample Description |
| MGet Demo |
Demonstrates how to store multiple files and folders from a local directory to an SFTP server using a wildcard expression.. |
| MPut Demo |
Demonstrates how to retrieve multiple files and folders from an SFTP server to a local directory using a wildcard expression. |
| SFTP Client |
Demonstrates a full SFTP client, including storing and retrieving files, sending commands, and retrieving listings. |
| SSH Client |
Demonstrates a fully interactive, multiple-session SSH client. |
Samples using the exposed COM interface:
| VB6 Sample Name |
Sample Description |
| Automated Client |
Demonstrates execution of a simple blocking script. |
| SFTP Client |
Demonstrates a full SFTP client, including storing and retrieving files, sending commands, and retrieving listings. |
| SSH Client |
Demonstrates a fully interactive, multiple-session SSH client. |
Download the SSH and SFTP Samples Now!Additional Sample Downloads
Download the SSH with VT Sample Now!