Is it possible to pickup a specific file from a folder?

Hi
I am wondering whether it is possible to pick a specific file from a folder. I have a shape where I have got a filename and I need to look for it in a folder.
Is that possible?
And how can I achieve this? The next step is to pick the file up and transfer it to another location. So basically in pseudo code I need to ask my defined folder with a filename as parameter. Get the file and move it to another folder.
Suggestions are most appreciated. Thanks

Assuming you are using orchestration, you could
create an assembly, install it in the GAC, add a reference to it in your BTS
project, and call it from an Expression shape to resolve the receive
location. You would only really need one static method in a class. Be sure
to add a reference to Microsoft.BizTalk.ExplorerOM.dll.
Example:
using Microsoft.BizTalk.ExplorerOM;
namespace Phil
public class OrchestrationHelpers
public static string ResolveReceiveLocationName(string
inboundTransportLocation, string receivePortName)
BtsCatalogExplorer bts = new BtsCatalogExplorer();
bts.ConnectionString =
"SERVER=localhost;DATABASE=BizTalkMgmtDb;Trusted_Connection=True;Network
Library=DBMSSOCN;"
foreach (ReceiveLocation location in
bts.ReceivePorts[receivePortName].ReceiveLocations)
if (location.Address == inboundTransportLocation) return location.Name;
return null;
In your Expression shape within your orchestration, assuming a message
called "MyMessage" and a string variable "receiveLocationName":
receiveLocationName =
Phil.OrchestrationHelpers.ResolveReceiveLocationName(MyMessage(BTS.InboundTransportLocation),
MyMessage(BTS.ReceivePortName));
If this post answers your question, please mark it as such. If this post is helpful, click 'Vote as helpful'.

Similar Messages

  • Possible to Exclude a specific intersection from DATAEXPORT?

    Version: 11.1.2.2
    Is it possible to Exclude a specific intersection from a DATAEXPORT in an Essbase Calc Script? I am able to exclude a member but I only want to exclude 1 intersection.
    Simplified Cube:
    Fund
    Dimension
    Center
    Dimension
    Account
    Dimension
    F1
    C1
    A1
    F2
    C2
    A2
    Working export:
    FIX (@relative("Fund",0), @relative(Center,0), @relative(Account,0))
           DATAEXPORT "File" "," "F:\TMP\Exp_Central.txt" "#Mi";
    ENDFIX
    Trying to exclude only the intersection of F2, C1, A1 (i know it doesn't work this way):
    FIX (@relative("Fund",0), @relative(Center,0), @relative(Account,0))
      EXCLUDE ("F2", "C1", "A1")
           DATAEXPORT "File" "," "F:\TMP\Exp_Central.txt" "#Mi";
      ENDEXCLUDE
    ENDFIX
    desired output:
    F1,C1,A1
    F1,C1,A2
    F1,C2,A1
    F1,C2,A2
    F2,C1,A1 I want this line excluded
    F2,C1,A2
    F2,C2,A1
    F2,C2,A2
    This is extremely simplified (I have multiple intersections to exclude, and a large cube) but should adequately pose the question. This process is moving data cube to cube. As an alternative I was thinking on the target cube I could just do a [FIX...CLEARDATA]. I have been searching for an answer and can't seem to find one, can anyone here offer advice?

    You can exclude a combination but not a specific intersection. EXCLUDE ("F2", "C1", "A1") will exclude F2, C1 and A1 completely.
    As Evgeniy.Rasyuk said, you have to use a different way to achieve it.
    You may achieve it using a rule file. I haven't tried it but you can give a try
    1. create a new text field in rule file which you use to load the data
    2. Join all the fields of dimensions related to F2,C1,A1. (remember to ignore this field during dataload
    3. use reject on the filed to exclude F2C1A1 to load to your database.
    The other way is what you have said to clear the data once it is loaded. Easiest and a simple way
    Regards
    Amarnath
    ORACLE | Essbase

  • Can I remove a SPECIFIC file from the "Recents" list?

         As far as I can see, Adobe Reader for Android has only the option of clearing ALL the files in the "Recents" list. It doesn't have the option of removing a specific file from the "Recents" list.
         Maybe I'm just missing the option I'm talking about or Adobe Reader doesn't really have that feature.
         Sensible answers to my question will be greatly appreciated. Thanks!

    Hi iSTULIN
    I assume you can delete the complete list, not the single file ...
    Please check the below link : http://blogs.adobe.com/readermobile/2011/09/09/faqs-for-adobe-reader-on-android/
    You can raise a feature request on the below link : https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Why is it no longer Possible to Copy and Paste files from Illustrator CC to Fireworks?

    Why is it no longer Possible to Copy and Paste files from Illustrator CC to Fireworks?

    What do "normal" AI prefs mean? AICB or PDF compliant? You might wanna try to turn off the latter....
    Mylenium

  • Want to open specific file from DMS Doc. thorugh Function

    HI,
    is there any function module to open specific file from DMS Document. ?
    There is already one function module DOCUMENT_SHOW_DIRECT to open File from document. But
    in case of there are more than one file in DMS Document is it giving me Popup menu to open file from List.
    I just want to open any single file without any popup from DMS Document.

    Hi,
    from standard point of view this kind of pop-up is always raised by the function module in case there are multiple originals assigned to the document info record.
    Best regards,
    Christoph

  • Will iCloud backup and push specific files from one MAC to another?

    will iCloud backup and push specific files from one MAC to another?

    This is what I get when I follow that Link, Winston.
    I am using Safari and I am sighned in with my Apple Id. I'm not sure what the trouble is but I can not seem to read that tip is there some other way for me to find it?
    Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake. 

  • Do you know if it's possible to generate Word 2003 files from RoboHelp if we're using Office 2007 and RoboHelp 2007?

    Do you know if it's possible to generate Word 2003 files from
    RoboHelp if we're using Office 2007 and RoboHelp 2007? We are
    thinking of upgrading, but have customers that would still require
    Word 2003 formats because they won't have 2007 installed.
    Thanks!

    Hi NewtoRobohelp
    Unfortunately I don't have Office 2007 in front of me to test
    with. But I'm thinking that as long as Office 2007 still produces
    the same formats as 2003, you could do it this way.
    From RoboHelp 7 and using Office 2007, generate Printed
    ouptut. Open said printed output in Office 2007 and perform a Save
    As. Save the document as a RTF (Rich Text Format) document.
    RTF is more universal. So I'm thinking this may be a possible
    way around it. There is also the possibility that Word 2007 offers
    up an ability when saving a file to save in an older format.
    Cheers... Rick

  • Possible to create a JAR file from within a java app?

    Is it possible to create a jar file from within a java application?
    Can it be done more elegantly than by spawning-off another
    process with the Runtime and exec() portions of the api?
    Thanks
    Scott

    Thanks! I was mislead by the API notes for java.util.jar:
    The JarOutputStream class is used to write the contents
    of a JAR file to any output stream.
    I was looking for a class or method to make jar files.
    Seems this is it ;)
    Thanks
    Scott

  • Possible to disable recently exported files from showing?

    at the home screen for ExportPDF, you can see the recently exported files. Is it possible to disable the recent files from showing?

    Hi ymco-hi,
    As Sara mentioned there's no way to disable the recently exported files from showing. The only way you can  make the files not appear in the list is by deleting them.
    Please follow the steps below for the same:
    Click on 'View All' and it will direct you to the 'Files' section where all the files are backed up.
    As you take your mouse on the file you want it to be disappeared, a check box will appear at the left corner.
    Click on that and you will see few option at the top.See this screen shot.
    Click on 'Delete' button and your file will no more appear on Export PDF screen.
    Regards,
    Florence

  • How to retrieve full flash solution from WSP if not than how to retrieve ascx files from Template folder in SharePoint 2013 ?

    How to retrieve ascx file from the Template folder in SharePoint2013
    My issue is, I have WSP only so I changed into zip and got my all web parts and also one dll file after that decrypted dll and got some C# code
    mixing with some system generated code but not ascx file that is for front-end part. So my question is how we can retrieve full flash solution if not, at least ascx files So if we were on SharePoint 2010 we could have got those file from __Template__
    folder but It’s on SharePoint 2013 and not able to get ascx.
    If we can do so, than will be easy to get the task to be done
    Suggestions would highly be appreciated. Thanks in Advance.
    Ashish

    Hi Amit,
    you can not move specific changes from Dev to production.
    but you can follow this process to make your workflow as it is as in Dev:
    Create a new workflow on the new list in Product.
    Create at least one step, one condition and one action in this workflow.
    1. In Dev server open your .xomal file as XML and copy the entire contents.
    2.In Production server Open your .xoml file as XML and Paste the entire contents
    3. repeat this operation for the xoml.rules file
    4.Double click the .xoml file for the new workflow to open the workflow in the Workflow Designer and click Check Workflow to verify no errors and then click Finish to ensure the workflow is saved.
    Whenever you need to make changes apply the same.
    Please Mark Answer and Vote me if it will to resolve your issue

  • I want to make a schedular which read xml files from a folder ,import in Indesign template then export as a pdf....

    i want to make a schedular probably in Coldfusion or using javascript ,  which read xml files from a folder ,import in Indesign template then export as a pdf....

    I don't think you understand: I want to open Dreamweaver and build a brand new site, then when I am done I want to host the dreamweaver site on the Business Catalyst platform. I dont want to use anything in BC to build the site, I just want to use the hosting platform. I do not want to import a BC site into dreamweaver or anything like that. I just want to use BC the same way I would use godaddy, or uhost or any other hosting provider. Based on your response you said that "of course its possible to build a BC site in Dreamweaver" I dont want to build a BC site, I want to build a Dreamweaver site and host it on the BC platform. Like I said before it doesnt seem like this is possible. As of now we can only build a new site in MUSE and integrate it into BC without using a BC template. Can you understand what I am saying. I DONT WANT TO USE A BC TEMPLATE, I WANT NOTHING TO DO WITH BC WHILE I AM BUILDING THE SITE WITH DREAMWEAVER, JUST LIKE MUSE DOES.

  • Importing All the files from a folder at a time

    Hi....
    Can any body tell me how to import set of files from a folder into IDM.
    It is becoming very difficult to import the files one after other....
    Waiting for Reply....
    Thanks in advance..........

    We used an ant script to build an XML file that will contain the files. The script is configured to use the folder structure of our CVS repository.
    We'd checkout our XML module and then run the build script and import the resulting init file.
    Code to the script is below -- caveat emptor. You'll need to change the folder structure to suit your own environment.
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="MyInit">
        <target name="init">
            <property location="." name="src.dir"/>
            <property location="." name="dest.dir"/>       
            <property name="project.name" value="${ant.project.name}"/>
            <property location="${dest.dir}/MyInit.xml" name="MyInit.output"/>
            <property name="source.configuration" value="${dest.dir}/configuration"/>       
            <property name="source.emailTemplate" value="${dest.dir}/emailTemplate"/>
            <property name="source.forms" value="${dest.dir}/forms"/>
            <property name="source.reports" value="${dest.dir}/reports"/>               
            <property name="source.resource" value="${dest.dir}/resource"/>          
            <property name="source.rules" value="${dest.dir}/rules"/>
            <property name="source.workflow" value="${dest.dir}/workflow"/>
            <!-- get the source path -->
            <path id="configuration.path">
                <fileset dir="${source.configuration}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="cp" refid="configuration.path" />
             <path id="emailTemplate.path">
                <fileset dir="${source.emailTemplate}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="ep" refid="emailTemplate.path" />
             <path id="forms.path">
                <fileset dir="${source.forms}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="fp" refid="forms.path" />
            <path id="reports.path">
                <fileset dir="${source.reports}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rptp" refid="reports.path" />                 
            <path id="resource.path">
                <fileset dir="${source.resource}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rep" refid="resource.path" />        
            <path id="rules.path">
                <fileset dir="${source.rules}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rp" refid="rules.path" />
            <path id="workflow.path">
                <fileset dir="${source.workflow}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="wp" refid="workflow.path" />
            <!-- get the path prefix -->
             <path id="source.path">
                <pathelement location="${src.dir}" />
             </path>
             <property name="sp" refid="source.path" />       
        </target>
        <target depends="init"  name="win_init">
            <!-- change the path of xml files to windows path -->
            <property name="importfile.path" value="${sp}"/>                            
        </target>              
        <target depends="init" name="make">
        <!-- using XML character entity references to escape
        <  <
        >  >
        '  &apos;      -->    
            <echo file="${MyInit.output}" append="false"><?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    ${cp}
    ${ep}
    ${fp}
    ${rptp}
    ${rp}
    ${wp}
    </Waveset>
            </echo>
         <!-- replace path prefix with ImportCommand -->
         <replace file="${MyInit.output}"
                  token = "${sp}"
                  value = "<ImportCommand name='include' file='${importfile.path}" />
         <!-- deal with file and path separators in an os independent way -->
         <replace file="${MyInit.output}"
                  token = "${file.separator}"
                  value = "/" />        
        <replace file="${MyInit.output}"
                  token = "${path.separator}"
                  value = "${line.separator}" />
        <replace file="${MyInit.output}"
                  token = ".xml"
                  value = ".xml'/>" />
        </target>
        <target depends="init,win_init,clean,make" description="Build everything." name="all"/>
        <target depends="init" description="Clean all build products." name="clean">
            <delete file="${MyInit.output}"/>
        </target>
    </project>

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • How to Copy an Image File from a Folder to another Folder

    i face the problem of copying an image file from a folder to another folder by coding. i not really know which method to use so i need some reference about it. hope to get reply soon, thx :)

    Try this code. Make an object of this class and call
    copyTo method.
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class FileUtil
    extends File {
    public FileUtil(String pathname) throws
    NullPointerException {
    super(pathname);
    public void copyTo(File dest) throws Exception {
    File parent = dest.getParentFile();
    parent.mkdirs();
    FileInputStream in = new FileInputStream(this); //
    Open the source file
    FileOutputStream out = new FileOutputStream(dest); //
    Open the destination file
    byte[] buffer = new byte[4096]; // Create an input
    buffer
    int bytes_read;
    while ( (bytes_read = in.read(buffer)) != -1) { //
    Keep reading until the end
    out.write(buffer, 0, bytes_read);
    in.close(); // Close the file
    out.close(); // Close the file
    This is poor object-oriented design. Use derivation only when you have to override methods -- this is just
    a static utility method hiding here.

  • How can I move a Pages file from a folder to another one?

    I Have done the upgrade to mac os Yosemite but now i'm Not able to move a file from a folder to another one Inside iCloud
    now it's impossible to organize MY archive

    Thankyou Winston, you guess right. What i don't understand is why with the older version of mac os (10.9) i can organize my document into icloud folders using the Pages app window. But now with the new version i'm no longer able to do that. Using ipad in the same window there is no problem, but in mac os it doesn't work. 

Maybe you are looking for

  • Issue regarding CRM service order status profile

    Hi Guys, Currently we are working on CRM 5.0 now the problem is when we create a service order then the sytem is throwing an error stating that Diagnosis Some system statuses cannot be set manually, but can only be set internally by the system. This

  • DMS document attachment with Incoming Invoice

    Hi All, We are creating one DMS document and want to attach it to an Incoming Invoice (MIRO). We are using the bapi BAPI_DOCUMENT_CREATE.  What are the fields to pass in Objectlink. Please help us to achieving it. Thanks

  • Sending a PDF of artwork

    I created an artwork using Illustrator version 10 and saved it on my desktop as a PDF to send to my brother by e-mail but he cannot open the document.  Could you help me regarding this issue?

  • Can I simply alter one page only of a web site in Aperture?

    I would like to simply change one page in Aperture without having to repost the entire website. The problem is that I have edited some of the HTML on iDisk outside of Aperture and don't want to have to go back and re-edit those pages again. I have fi

  • New tab isn't working - can't open a new tab

    I cannot open a new Tab, using OSX 10.9.4 and Firefox 31.0. I have tried the "+" and the keystroke. Thanks-