Differences

This shows you the differences between the selected revisions of the page.

2017-04-13 2017-04-13
no summary (78.241.99.175) (hidden) (untrusted) Restored revision 1482416479. Undoing revision 1492107006. (martin) (hidden)
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.
-// Configurer les options de session +===== Syntax ===== 
-SessionOptions sessionOptions = new SessionOptions +<code csharp *> 
-{ +public TransferOperationResult PutFiles( 
-····Protocol = Protocol.Webdav, +····string localPath
-····HostName = "camerta.com"+    string remotePath
-    PortNumber = 8000+    bool remove = false
-    UserName = "riadh"+    TransferOptions options = null 
-    Password = "riadh", +) 
-};+</code>
-using (Session session = new Session()) +<code vbnet *> 
-{ +Public Function PutFiles( _ 
-    // Connecter +    ByVal localPath As String, _ 
-    session.Open(sessionOptions); +    ByVal remotePath As String, _ 
- +    ByVal Optional remove As Boolean = False, _ 
-    // Transférer fichiers +    ByVal Optional options As TransferOptions = Nothing _ 
-    session.PutFiles(@"C:\Users\bouchaib\Desktop\client iptv\iptv liste libre\arabe et francais mourad 63.txt", "/*").Check(); +) As TransferOperationResult 
-}+</code>
==== Parameters ==== ==== Parameters ====

Last modified: by martin