>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:
>
>thisform.olemitc.Protocol = 2
>thisform.olemitc.username = "MyUserName"
>thisform.olemitc.password = "MyPassword"
>thisform.olemitc.url = "999.999.999.999"
>thisform.olemitc.requesttimeout = 30
>thisform.oleMITC.execute("SEND C:\Test.TXT test.txt")
>
>I don't get any error message and the file doesn't get sent. I've also tried this version without success:
>
>thisform.olemitc.Protocol = 2
>thisform.olemitc.username = "MyUserName"
>thisform.olemitc.password = "MyPassword"
>thisform.olemitc.requesttimeout = 30
>thisform.oleMITC.execute("999.999.999.999", "SEND C:\Test.TXT test.txt")
>
>And this one:
>
>thisform.olemitc.Protocol = 2
>thisform.olemitc.username = "MyUserName"
>thisform.olemitc.password = "MyPassword"
>thisform.olemitc.requesttimeout = 30
>thisform.oleMITC.execute("
FTP://999.999.999.999/", "SEND C:\Test.TXT test.txt")
>
>TIA
Hi Sylvain:
PMFJI: There have been several other replies, but we recently started to use the FTPClass classlib from here in the Files section with very good results. It uses the WinInet.Dll installed on all the Win9x and NT systems by default, and though not fast, was fast enough and no cose. We also looked at Mabry -- fastest by far but not cheap in our scenario, wwIPStuff -- looked good, but didn't get it to work (our fault, I'm sure) in our firewall setup, Communication Horizons NETLIB-FTP addin -- fairly expensive but just as slow as using WinInet.Dll, so no advantage.
In the end, we decided to use the FTPClass and so far have only needed to change it to allow a choice of Binary or ASCII transfer -- one of our host systems didn't like a Binary transfer of a text file but it was okay in ASCII mode. Easy modifications, and nothing else needed. Otherwise, the properties and methods are all in a straight Prg, rather than a VCX, which might offend some, but was okay for us.
BTW: Future plans if more speed is needed is to try 1) wwIPStuff then 2) Mabry.
Check it out.
HTH
Rob