scb2376
Ummm - I thought I did answer your original question.
scb2376 wrote: |
|
But your original question - I haven't noticed a multiple mask option.
| |
And I was just asking for clarification to help you. If you don't want to delete the other files, then do nothing with them, just let the loop continue.
Anyway - what I originally said (and then Phil later confirmed) will work fine. The below script parses up the filename and grabs the extension and puts it in a variable. Then in your precendence constraint editor, choose expression & constraint and make it something like (@sFileExtension=="txt")
Dim
txtFileName As String
Dim
intLength As Integer
Dim txtFileExtension As String
'Get Filename with path
txtFileName = Dts.Variables(
"sFileName").Value.ToString
'Get Length of path+filename
intLength = txtFileName.Length
'Get File Type/extension
txtFileExtension = txtFileName.Substring((intLength - 3), 3)
Dts.Variables(
"sFileExtension").Value = txtFileExtension