This is an old revision of the document!
WinSCP .NET Assembly Examples
Illustrative Examples
Example | Description | Languages |
---|---|---|
Overall example | Create a session, upload a file and check/print results. | C#, VB.NET, JScript, VBScript |
Session.GetFiles, Session.FileExists and Session.GetFileInfo methods example | Check remote file existence, read remote file modification (last write) timestamp, conditionally download file. | C#, VB.NET, JScript, VBScript |
Session.ListDirectory method example | Retrive and print contents of remote directory. | C# |
Session.SynchronizeDirectories method and Session.FileTransferred event example | Synchronize local and remote directories, handle Session.FileTransferred event to display synchronization progress. |
C# |
Session.ExecuteCommand method example | Execute a command on a remote side, download results. | C# |
Advertisement