Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Internet Transfer Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00273356
Message ID:
00273963
Vues:
17
>Has anyone used the MS Internet Transfer control successfully to send a file via FTP? I've tried and couldn't get it to work. Here is my send method:
>
* Try a DNS in lieu of address
thisform.olemitc.url = "FTP://MyDNS.com" && Maybe "FTP://999.999.999.999"
thisform.olemitc.Protocol = 2 && FTP, right?
thisform.olemitc.username = "MyUserName"
thisform.olemitc.password = "MyPassword"
****>thisform.oleMITC.execute("SEND C:\Test.TXT test.txt")
* Try this for your send, note leading coma. You need an arrival name for file!
thisform.oleMITC.execute(,"PUT C:\Test.TXT Test.txt")

Assure SP3 and v6. I wrote an FTP client (looks and feels like cuteFTP) with this control. A lot of people suggested those third party guys. I've heard and suspect they're excellent. But the MS ITC is fast (lights a constant green) and reliable. They're are also some excellent drag and drop samples in the files area.

You might want to echo State msgs and responseinfo to a staus bar or something.
I'd reccomend out messageing for all 12 StateChanged to an editbox just soze you can see whats going on.

You only need GETCHUNK if you query a remote directory.

HTH
T
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform