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