cancel
Showing results for 
Search instead for 
Did you mean: 

How to pickup files from multiple directories

Former Member
0 Kudos

Hi all,

How to pickup files from multiple directories and send it to two different folders at target

Ex:
files\xi\us\US.txt


files\xi\uk\UK.txt

i need to pick up the above mentioned two files and send it to the following paths


app1\files\us\download\US.txt


app1\files\uk\download\UK.txt

US.txt has to goto US folder and UK.txt has to goto UK folder only

Regards

Accepted Solutions (1)

Accepted Solutions (1)

sunilchandra007
Active Contributor
0 Kudos

Hi Vamsi,

Check out /people/pavan.kumar110/blog/2009/08/05/processing-multiple-files-in-source-system-and-target-system

Regards,

Sunil Chandra

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

To pick form multiple folders, select Advanced Mode for file selection in file adapter..

there u can specify directory name/file names

Refer

/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter

To put those files at multiple folders write a command line arguments for this.. go through this weblog...

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

XI/PI: Command line sample functions

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Hope this will help you....

Regds,

Pinangshuk.

prateek
Active Contributor
0 Kudos

You can use "Advanced Selection for Source File" in file sender channel. There you can specify multiple directories.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

Picking the files from multiple directories is fine, after then how can i send US.txt to US folder and UK.txt to UK folder

Based on which condition i can achieve this

Regards

prateek
Active Contributor
0 Kudos

At the same Advanced tab, you would be able to see File Name Mask option as well. Put the name or *.txt.

Regards,

Prateek

Former Member
0 Kudos

Hi,

You are talking abt the sender file adapter, but iam asking abt the receiver.

Once i picked up these two files, how can i determine which file need to send to which folder

Regards

prateek
Active Contributor
0 Kudos

Then it doesn't really make much sense to me to put efforts on the same channel. You can simply use different scenarios with different channel. Its better to keep things simple.

Regards,

Prateek

Former Member
0 Kudos

Yes Prateek,

Instead of all this better to go with two different scenarios itself.

Just tried for single way

Regards