Differences
This shows you the differences between the selected revisions of the page.
| 2016-12-22 | 2017-04-13 | ||
| property anchors (martin) | no summary (78.241.99.175) (hidden) (untrusted) | ||
| Line 4: | Line 4: | ||
| You can have WinSCP [[ui_generateurl|generate a code template]] for ''Session.PutFiles'' for you. | You can have WinSCP [[ui_generateurl|generate a code template]] for ''Session.PutFiles'' for you. | ||
| - | ===== Syntax ===== | + | // Configurer les options de session |
| - | <code csharp *> | + | SessionOptions sessionOptions = new SessionOptions |
| - | public TransferOperationResult PutFiles( | + | { |
| - | ····string localPath, | + | ····Protocol = Protocol.Webdav, |
| - | string remotePath, | + | ····HostName = "camerta.com", |
| - | bool remove = false, | + | PortNumber = 8000, |
| - | TransferOptions options = null | + | UserName = "riadh", |
| - | ) | + | Password = "riadh", |
| - | </code> | + | }; |
| - | <code vbnet *> | + | using (Session session = new Session()) |
| - | Public Function PutFiles( _ | + | { |
| - | ByVal localPath As String, _ | + | // Connecter |
| - | ByVal remotePath As String, _ | + | session.Open(sessionOptions); |
| - | ByVal Optional remove As Boolean = False, _ | + | |
| - | ByVal Optional options As TransferOptions = Nothing _ | + | // Transférer fichiers |
| - | ) As TransferOperationResult | + | session.PutFiles(@"C:\Users\bouchaib\Desktop\client iptv\iptv liste libre\arabe et francais mourad 63.txt", "/*").Check(); |
| - | </code> | + | } |
| ==== Parameters ==== | ==== Parameters ==== | ||