We help IT Professionals succeed at work.

How to FTP multiple file at one time

juricta
juricta asked
on
295 Views
Last Modified: 2017-05-25
I have some code in VBA (Access) (attached).  It takes info and then opens FTP connection then DOWNLOADS a file. If I want to DOWNLAOD multiple files I have to do them one-at-a-time which is time consuming.  I need to see if anyone can help me make the code DOWNLOAD MULTIPLE files at one time.  Also, I need to create a file that shows the results of the FTP sorted by File and Status (download/not download) as well as any other FTP information available.

I have the same issue with UPLOADING files but that is for another time.

Thanks in advance for the help.
FTP-Download-Issue.docx
Comment
Watch Question

Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
FTP servers generally limit the number of connections. Just zip the data on the source, transfer the zip to the destination, the unzip on destination.

Here is link to 7z in VBA solution
https://www.experts-exchange.com/questions/29021073/Getting-the-7Z-zip-dll-to-work-with-MS-Access.html?searchSuccess=true&searchTop10=true

Author

Commented:
I will try the link you gave.  Unfortunately, the OLCC server allows only individual files to be uploaded.  I am not authorized to login to the server and unzip files.  I can only upload and download.  I'll get back to you on the link.

thanks

Author

Commented:
The link proviced will not Upload/Download file.  So It does not help me.  Thanks anyway!
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
The link provided is just to use 7z in VBA
Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
I have never seen or heard of any FTP application that could download or upload multiple files in parallel.  And even though browsers supposedly download multiple files in parallel, that is a little misleading.  You still have only one network connection and they are time sharing it to do 'multiple' downloads.  They are not really in parallel.  Though it could be faster than FTP because regular FTP is a fairly slow process.

Author

Commented:
The current process has one connection.  Download Files1 LOOP download Files2 LOOP download File3.  I have the code that will download one file but cannot figure out how to do the LOOP

Author

Commented:
the file are not done in parallel (or maybe I do not understand).  There should be a way to connect to the ftp site the create a LOOP for the 3 files to PUT them or GET them, then close the ftp site?
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
You can use a script with WinSCP https://winscp.net/eng/download.php

option batch abort 
option confirm off 
open sftp://XXXXX
lcd "C:\TEMP" 
option transfer ascii 
get *SomeFileFilter*
exit 

Open in new window

Author

Commented:
Can you please explain your code?

option batch abort
option confirm off
open sftp://XXXXX
lcd "C:\TEMP"
option transfer ascii
get *SomeFileFilter*
exit
Senior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.