DinoRS - Wednesday, October 17, 2018 6:21 AM
The 'project variable' you are referring to is actually a parameter. And, as you suggest, parameters are read only at runtime.
So you need to create a variable which depends on the value of the parameter.
If the parameter is 'full', set the variable to *.txt'.
If the parameter is 'daily', set the variable to 'File_YYYYMMDD.txt' (where YYYYMMDD decodes to today's date)
Finally, you need to set an expression in your FOREACH container which assigns the variable to the FileSpec property:
This stuff all gets evaluated at run time. You do not need to worry about the property being wrongly persisted between runs, as long as you have set the parameter's value correctly.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.