cancel
Showing results for 
Search instead for 
Did you mean: 

How to exclude two kind of files in the same folder in sender cc?

xinjiang_li
Active Participant
0 Kudos

Hi,gurus:

Now we are using "advanced selection for source files" in sender file adapter.

Our requirement is as below:

The source directory is c:\test and there are many files in the directory.

We want to transfer all the files except aa.txt and bb.txt.

We have to implement it in one scenario,but it couldn't work.

It worked only when we transferred all the files except aa.txt or bb.txt,but not work when we want to transfer except aatxt and bb.txt.

I checked the blog "XI/PI: how to exclude files in a sender File adapter?",but it is not the same issue.

Any help will be appreciated.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

xinjiang,

send u a doc file how to use exclusion mask..for this scenario...

Regards,

SudhirT
Active Contributor
0 Kudos

Hi,

you can provide all the file names you want to pass in first two column. just dont provide the name of aa and bb. it will work also give correct dir path instead of nothing.

thanks.

xinjiang_li
Active Participant
0 Kudos

Hi, Sudhir:

I know your mean,but it will be very complex if I do like that,for the file name I wanna exclude is very long.

SudhirT
Active Contributor
0 Kudos

Hi,

The only way to solve your purpose is

Provide the list of file names like c. d. e. f. whatever possible number of file names in the "File Name Mask" column and provide the directory names by clicking on plus for additional rows. just dont use aa.* and bb. anywhere.This will do your purpose.

Thanks!

Former Member
0 Kudos

xinjiang,

Have you tried by giving both file names(aa.txt,bb.txt) separated by comma .

Regards,

xinjiang_li
Active Participant
0 Kudos

Hi,Santosh:

I tried it but failed.

Former Member
0 Kudos

xinjiang,

It should work..!!!

Regards,

SudhirT
Active Contributor
0 Kudos

Hi,

check blog no 4463, it is clearly mentioned. check the case of toto.* files.

search this blog and u wil come to know how to configure.

thanks.

xinjiang_li
Active Participant
0 Kudos

Hi,

I checked that previously but it didnt work.

His case is to exclude only one kind of files in the same directory(toto.txt),but our case is to exclude two kinds(aa.txt and bb*.txt).

Any ideas?

SudhirT
Active Contributor
0 Kudos

hi,

use exclusion mask property in advance file selection parameter. give the names you want to exclude under exclusion mask,and the other you want to pass under first column.

there is a blog by michal,search with term exclusion mask in sdn.

hope this help.

thanks.

xinjiang_li
Active Participant
0 Kudos

Hi,Sudhir:

Previously,I have configured it as you said.

But the result was that all the files including aa.txt and bb.txt were picked,and that was not what I want.

Any ideas?