BizTalk Server General - Unique Save Operarion

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2005 > Unique Save Operarion





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]

Author Unique Save Operarion
Opyuse

2005-06-07, 7:53 am

I'm looking for a way to check if a file a user is saving to is unique.

How do I search a file path for files with the same name as the one the user
wishes to use.

Thanks


Doug Girard [MSFT]

2005-10-03, 8:48 pm

Copying from the FILE Adapter Properties documentation:

Define the copy mode to use when writing a message to a file. Valid values
are:
- Append (0). The file send handler opens a file if it exists and appends a
message to the end of the file. If the file does not exist, the file send
handler creates a new file.
- Create new (1). If a file does not exist, the file send handler creates a
new file and writes to it. If the file already exists, the file send
handler reports an error and then follows common adapter retry logic for
send ports. This is a default copy mode for the file send handler.
- Overwrite (2). The file send handler opens a file if it exists and
overwrites its content. If the file does not exist, the file send handler
creates a new file.

If this behavior is insufficient, you can use System.IO which has a
File.Exists() method. You can call this from an orchestration expression
shape or a custom pipeline component to determine if you need to change the
output file name.

HTH,
Doug Girard [MSFT]

Note: This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>Thread-Topic: Unique Save Operarion
>thread-index: AcVrUtiQvFOvovnfRbWJYGfH22Hw+A==
>X-WBNR-Posting-Host: 62.253.230.97
>From: =?Utf-8?B?T3B5dXNl?= <Opyuse@discussions.microsoft.com>
>Subject: Unique Save Operarion
>Date: Tue, 7 Jun 2005 04:20:01 -0700
>Lines: 8
>Message-ID: <4E5D59DE-BCFB-494C-90AC-AFEE64D97E40@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.biztalk.general
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:14499
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>I'm looking for a way to check if a file a user is saving to is unique.
>
>How do I search a file path for files with the same name as the one the

user
>wishes to use.
>
>Thanks
>
>
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com