FileViewTransfer.cs
//This script will first set Secondview to local mode and switch to the "Documents" directory, //then let FirstView connect to the demo.wftpserver.com server and switch to the "download" directory. //Finally start to download "Autumn.jpg" and "Spring.jpg". SecondView.SwitchToLocal(); await SecondView.ChangeDir("~Documents"); Server source = new Server{ Host ="demo.wftpserver.com", Username="demo", Password="demo" }; await FirstView.Connect(source); await FirstView.ChangeDir("download"); FirstView.TransferFile("Autumn.jpg"); FirstView.TransferFile("/download/Spring.jpg"); |
Created with the Personal Edition of HelpNDoc: Free Web Help generator