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

SSIS 2005 Script task Get all Zip File Names and store to an ssis object Variable and same variable using in for each loop container

$
0
0

Hello All,

 

I have a Directory where a new Zip Files are Frequently Coming, before Unzipping the Zip Files, i have to capture all Zip File Names into one variable, I tried Using below Script Task, but its capturing entire Path with File Name, how to capture only File Names, using Script task, if below script is not correct please post the Correct Script , which captures ONLY all "zip file Names" into One Variable.

 Dim array1 AsString() = Directory.GetFiles((Dts.Variables("SourceFilePathRoot").Value.ToString + Dts.Variables("SourceFileFolder").Value.ToString),"*.ZIP")

       Dts.Variables("ZipFileNames").Value = array1

here I declared ZipFileNames as an Object Data Type in SSIS and Read Write Variables in SSIS.

please Help who knows solution for this.

Thanks In Advance

================

Supreeth


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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