Re: FTP to retrive dynamic file name
From: Martijn Hoogendoorn (martijn.hoogendoorn_at_macaw.nl)
Date: 09/04/04
- Next message: Asbjørn Rygg: "Re: Creating Build Script for Scott Colestock NAnt Deployment Wiza"
- Previous message: Sam Vanhoutte: "Re: Remove Byte Order Mark from XML Message"
- In reply to: James: "FTP to retrive dynamic file name"
- Next in thread: Maran: "RE: FTP to retrive dynamic file name"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 4 Sep 2004 11:22:48 +0200
On Fri, 3 Sep 2004 19:51:01 -0700, James wrote:
> Hi :
>
> How could I using BTS 2004 FTP adapter to retrive files on a FTP server
> with "dynamic" file name.
> for example, there are many files on the FTP server but I just want to
> retrive those files with some specific filename rules like "ID.YYMMDD" Id :
> maybe means for somekind of identifiers for the business partner and YYMMDD
> is just for the date.
>
> Thanks !!
Hi James,
Simply put, you can't. The BizTalk Server 2004 FTP adapter uses the
Xceed.Ftp class, which can be found here:
http://www.xceedsoft.com/products/FtpLib/index.aspx. Internally, to
retrieve a list of files to transfer, a method is called within the
library, named "GetFolderContents", which is passed the "File Mask" you
configured within the property page of the receive port as-is. If you check
the documentation of the Xceed.Ftp class for that method, you see that you
can only set the filemask to whatever a regular ftp server would support
(e.g. *.xml), no macros are available to use. The documentation for the
GetFolderContents method is located here:
http://doc.xceedsoft.com/products/ftpNet/ref/index.htm?page=xceed.ftp.ftpclient.getfoldercontents.html
HTH,
Martijn Hoogendoorn
- Next message: Asbjørn Rygg: "Re: Creating Build Script for Scott Colestock NAnt Deployment Wiza"
- Previous message: Sam Vanhoutte: "Re: Remove Byte Order Mark from XML Message"
- In reply to: James: "FTP to retrive dynamic file name"
- Next in thread: Maran: "RE: FTP to retrive dynamic file name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|