|
Home > Archive > BizTalk Server General > September 2005 > File adapter
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| david.liu@sunaptic.com 2005-09-20, 6:03 pm |
| Hi, is there anyone who has an idea for a file adpater searching all
subfolders looking for files that fit the file mask? I don't want to
create lots of receive locations.
Thanks
| |
| Alan Smith 2005-09-21, 7:48 am |
| Hi,
The file adapter won't do this. A couple of options:
Write a windows service (in C# or .net) to scan the directories, and move
the files to a location where BizTalk can pick them up. I think there's a
directory (or folder) watcher class that generates an event when a folder
contents is modified, but i'm not sure if it's hirarchical. (Also beware of
name clashes wne coppying to a sengle location).
If there arn't too many receive locations:
Create a binding file for the receive port and one location. You can then
edit the binding file and add a bunch of locations easily, then import the
binding file to create the locations. (Be aware that the fisrt location will
be specified as default, you will need to change this in the other locations).
A third option would be to write a custom adapter, but this may be a complex
solution to a simple problem.
Regards,
Alan
--
The Bloggers Guide to BizTalk
http://geekswithblogs.com/asmith
"david.liu@sunaptic.com" wrote:
> Hi, is there anyone who has an idea for a file adpater searching all
> subfolders looking for files that fit the file mask? I don't want to
> create lots of receive locations.
>
> Thanks
>
>
| |
| david.liu@sunaptic.com 2005-09-23, 8:47 pm |
| Hi Alan,
Thank you very much. I think the second way may be the easest way
though it will create lots of receive location
David
|
|
|
|
|