Hello,
I currently have an XML configuration file called ProjectFiles.dtsConfig created under SSIS that contains five variables SrcFile1, SrcFile2, SrcFile3, SrcFile4 and SrcFile5. Each has a value defining the location and name of a unique file, where each can be in a different location. Over time I will be adding and removing the file variables from the config file, but the variable names for the files to be copied will always begin with "SrcFile".
Is there a way, using expressions or scripting or whatever, to dynamically loop through and copy the files associated with variables in the schema file that begin with "SrcFile"? I have looked into applying different enumerations under the Foreach Loop Container in an SSIS package and would like to avoid hardcoding the variable names (SrcFile1, SrcFile2, etc.), as there may eventually exist a SrcFile6, SrcFile7 and so forth in the future.
Thanks,
Kosh2010