HI Guys,
I have multiple files in a location. Now i need to process each file one after the another.
So, i need to pass the file names one after the another to a sequence.
Can you guys help me with this.
Cheers!!!!
Passing multiple filenames one after another
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 126
- Joined: Thu Jul 01, 2010 11:39 pm
-
- Participant
- Posts: 342
- Joined: Tue Nov 04, 2008 10:38 am
- Location: Chennai, India
-
- Participant
- Posts: 126
- Joined: Thu Jul 01, 2010 11:39 pm
That by itself won't work as the list needs to be delimited. Typically you would use a User Variables Activity stage to generate the list and your O/S should have an "m" option (off the top of my head) to return your list of filenames comma delimited.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Is the order in which files were created in the directory important ?
one possible option is to use
And in an user variable stage use
Trailing field marks from command output need to be removed or else they can create problems..
use this variable in the start loop , specifying comma as the delimiter.
Disclaimer : Some commands may not behave the same way in all platforms. Use discretion
one possible option is to use
Code: Select all
ls -m /path/Text*.txt
Trailing field marks from command output need to be removed or else they can create problems..
Code: Select all
uv= FileListConvert(@FM,"",ExecCmd.$Command_Output)
Disclaimer : Some commands may not behave the same way in all platforms. Use discretion