J'utilise ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 FTPClient client = new FTPClient(); client.ControlPort = 21; client.RemoteHost = "monCopainLeServeurFtp"; client.Connect(); client.Login("GrosTata", "h4x0r"); client.TransferType = FTPTransferType.BINARY; client.Delete("snoopy.jpg"); client.Put(localFile, "snoopy.jpg"); client.Quit();
Partager