Multipe file transfer using FTP

H

HenryV

I am trying to pick up trading partner files from multiple directories
on our FTP server For example folder a, b, c. If I attemp to transfer
using a wild card from the parent folder on all *.txt files, I get the
folder structure as well. I want to dump all the files from the
multiple folders into a single folder on the receiving end. I guess as
a fallback I can run my script against each specific folder but that is
going to be a growing target that I was hoping I wouldn't have to
maintain as the number of folders I.m required to pick up files from
grow.

I'm thinking of a script file to connect and pick up the files.
Currently I'm playing with the PentaWare suite of FTP tools, I will use
MS Script or even VB if I have to.
 
R

Robin Hammond

Henry,

Not sure if you want to take this on, but if you are looking for an ftp
library that runs efficiently in vb, this is the best thing I have seen so
far.

http://www.vbip.com/protocols/ftp/vb-ftp-client-library/default.asp

It's fully event driven, allows file enumeration, etc. At first glance it
seems a bit complex to put it in a vb project, but I actually got it up and
running fairly quickly. Only thing is that you have to be quite careful when
debugging to make sure you allow events to fire, so lots of use of
debug.print rather than breakpoints.

Robin Hammond
www.enhanceddatasystems.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top