Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

pturner

I had to use a loop anyway for how I am using WinSCP with our setup.
martin

Re: Downloading contents of folder is not getting completed

Session.GetFiles can download whole directory, you do not have to use a loop.
Please set SessionLogFile and post the log file.
pturner

Downloading contents of folder is not getting completed

I have the code within SSIS script task to pull the contents of a remote folder to the local drive. when the script task is running, it completes downloading one file then continues on to the next line of code before the rest is finished downloading. I am going to guess that I need to stick the getfiles() into a while loop and download each file one by one. Is there a way for the script to wait for all the files to finish downloading?