ForEach Loop, getting filename - help?
- From: unc27932@xxxxxxxxx
- Date: 12 Feb 2006 13:39:20 -0800
Using 2005, SSIS...
OK - I'm trying to loop through all the *.txt files in a certain
directory, and using each filename, call an executable, passing the
filename as an argument to the executable. I started by adding a
foreach loop container, and made sure it was foreach file enumerator
type. I chose the appropriate directory, and put in my *.txt filter,
and chose to use the fully qualified name. On the variable mappings
page, I created a new variabe (User::FileName), and saved it. Then I
added the execute process task inside the for each loop container,
calling the executable in the execute process task. I then chose the
User::FileName variable as the StandardInputVariable. And it won't
work. It can't find the filename at all. It does it 3 times (which is
the # of files) but it's not finding the filename.
What do I need to do in order to get the filename passed to the
executable???
.
- Follow-Ups:
- Re: ForEach Loop, getting filename - help?
- From: Allan Mitchell
- Re: ForEach Loop, getting filename - help?
- Prev by Date: Re: Exporting file-data from a table in SQL2000
- Next by Date: Re: ForEach Loop, getting filename - help?
- Previous by thread: Exporting file-data from a table in SQL2000
- Next by thread: Re: ForEach Loop, getting filename - help?
- Index(es):
Relevant Pages
|