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

Help SSIS Variable Loop Foreach

$
0
0

hi,

I developed a ssis script.
I set up a foreach loop, I run the processing for each file in a directory. After processing a file I move it to another directory with a file task.

I have a variable "StrOfFile" which stores the path of my file to be processed, I would find a way to retrieve the name of the remaining files in my home directory for each time change the value of "StrOfFile" the new way new file handle.

For example here is the folder. Csv files to process:



"StrOfile" take as the value for the first round of the loop: D: \ SSIS2008 \ ConteneurMVT \fichier-non-traite\ dmc12.csv

But how to pass the second round automatically variable to D: \ SSIS2008 \ ConteneurMVT \fichier-non-traite\ dmc27.csv ?

Thanks


Viewing all articles
Browse latest Browse all 24688

Trending Articles