cancel
Showing results for 
Search instead for 
Did you mean: 

How to send source file to many target folders

Former Member
0 Kudos

Hi Friends,

My requirement in file to file scenario,i need to send source file to many target folders by using single receiver comm channel.How can i achieve this??,Please suggest me to do this.

Thanks

pullarao.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

This blog talks about the same

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

Regards,

Mugdha Kulkarni

Former Member
0 Kudos

HI,

See the below thread related to your requirement

Dynamic folder - in payload

Regards

Chilla

Former Member
0 Kudos

Hi Pullarao,

>>><i> ....to send file to many target folders by using single receiver comm channel....</i>

Write a command line arguments for this.. go throgh this weblog...

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

regards,

Ansar.

Former Member
0 Kudos

Hi Ansar,

How can i use OS Commands at command line field in comm channel,Please explain me in details manner.My Source & Target file locations are in XI Server locations.For example

Source Location :


xiserver\Source\source.txt

Target locations are :


xiserver\target1


xiserver\target2


xiserver\target3


xiserver\target4

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

In the File adapter, command line processing after message proccessing write these commands,

copy
xiserver\Source\source.txt \xiserver\target1; copy
xiserver\Source\source.txt \xiserver\target2;

and so on.

Regards

Bhavesh

henrique_pinto
Active Contributor
0 Kudos

> Hi Ansar,

>

> How can i use OS Commands at command line field in

> comm channel,Please explain me in details manner.My

> Source & Target file locations are in XI Server

> locations.For example

>

> Source Location :

>

>
xiserver\Source\source.txt

>

> Target locations are :

>

>
xiserver\target1

>
xiserver\target2

>
xiserver\target3

>
xiserver\target4

Why are you even using XI in this case???

Do you have any data validation or mapping?

If not, just write a batch file to copy the file.

Regards,

Henrique.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Use Adapter Specific Idnentifiers and set the the Directory name dynamically from your mapping.

or, put it into one folder and then use a Shell Script to move it to the other folders.

Regards

Bhavesh