Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Script task FTP download...

$
0
0

Hi,

I have a script task that connect to an FTP site and downloads all files on the site.  At present it checks to see if the file physically exists on the server and if so it does nothing ..

 If File.Exists(ImportedLocation & currentFile) Then
                    '' ALready Exists


                Else

                    theWebClient.Credentials = theCredential

                    theWebClient.DownloadFile("ftp://ftp.doubleclick.net/14069" & "/" & currentFile, ToImportLocation & currentFile)

                End If

I need to change this so that rather than check if the file exists on the server, it checks an Variable (of Type Object) which has a list of file names within it.  This is because I don't have the space to keep the files after download, but I log into a table that its been downloaded.

How can I check if the currentFile is within the object variable?

Thanks!
Chris


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>