July 13, 2011 at 9:47 am
I have a File System Task inside a For Each loop container
I need to look for a specific string "TXN" in the file name and if it finds then move the file to a separate folder.
I have a variable
vFileName = \\myShare\NMNClient\Files\NMNClient_TXN _20110701.txt
In the Conenction string property of the file Connection Manager I have @[User::vFileName]
This works great for moving the file NMNClient_TXN_20110701.txt
But I need help on looping through the folder to find any file that has "TXN" string in the filename to move them.
Thank you in advance!
July 13, 2011 at 12:17 pm
Stick your File System task into a For Each Loop container. Pass the file name / path down from the For Each Loop to the variable and use the variable in the File System Task.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply