File archiving into multiple folders

Hi,
I have the below scenario:
There are two folder paths that one XI sender channel is polling on. Multiple folders can be polled on using one channel with the help of "Advanced Selection of Source File" option in the Sender communication channel.
But, I need your help in archiving the files to multiple folders.
For example, I have two main folders A and B configured in the Sender communication channel.
If the file has come to the folder A, it has to be archived in the 'A/archive' folder. Similarly, if the file has come to the folder B, it has to be archived in the 'B/archive' folder.
Please note that archiving has to be done before message processing.
1. I tried writing a script but it didnot work. If you have a script that worked, please provide me with the same.
2. I cannot create two sender channels, since the sender agreement cannot be common for two channels for the same business system and message interface.
Please help me if you have any other better optimum solutions.
Regards,
Subbu

Hi Subbu,
contact UNIX team, they will help you, you can do this easily using UNIX script.
Regards,
Raj

Similar Messages

  • How to Export Multiple Compositions Into Multiple Folders With Metadata?

    Currently I am working on a project which requires the export of one video file into multiple sizes and formats. In the end there are 80+ separate video files which derive from basic groupings of ratios. As you can see by the attached pictures, I have set up a waterfall type procedure in which a master composition with safe margins is inserted into the various sub-ratios until it trickles down into the final sizes at the bottom.
    I know you can simply drag and drop the files from After Effects into Media Encoder after selecting a preset to export the items. My only issue is how can I export the 80+ video files into 80+ different folders (depending on the size/ratio) along with the proper metadata?
    So my thought became is there a way to automate the process by allowing me to create on video, and much like the watch folder, export the one master video and then let Media Encoder work its magic with the 80+ other videos?
    Thanks in advance.

    Unless you care to create 80 output presets in AME I don't see it working and then even I wouldn't rely on it. AME is too notoriously error-prone. It would probably be simpler and less nerve-wrecking to create an AE script that sets up your AE render queue and creates the folders and render directly from AE...
    Mylenium

  • How to use the js in the case of not sure the file name into multiple files to PS?

    function place($path){
        var idPlc = charIDToTypeID( "Plc " );
        var desc28 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc28.putPath( idnull, new File( $path ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc28.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc29 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idHrzn, idRlt, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idVrtc, idRlt, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc28.putObject( idOfst, idOfst, desc29 );
        executeAction( idPlc, desc28, DialogModes.NO );
    for(i=1;i<=4;i++){
        place ("E:\\aaa\\"+i+".jpg");
    目前我的解决方案是,把多个文件提前修改成数字序列,然后用for循环调用,我想问的是,如果我不更改文件名,是否也可以同时导入多个文件?
    At present my solution is to advance the multiple files modified into a sequence of Numbers, and then use a for loop calls, I want to ask is, if I don't change the file name, also can import multiple files at the same time?

    You could use a file or folder selection dialog and then feed the selected files into the for-clause.
    var aFile = selectFile(true);
    alert (aFile);
    ////// select file //////
    function selectFile (multi) {
    if (multi == true) {var theString = "please select files"}
    else {var theString = "please select one file"};
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog (theString, '*.jpg;*.tif;*.psd;*.png', multi)}
    else {var theFiles = File.openDialog (theString, getFiles, multi)};
    ////// filter files  for mac //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|png)$/i) || theFile.constructor.name == "Folder") {
            return true
    return theFiles

  • Search for file types in multiple folders

    Hello,
    I would like to copy all jpg images from around twenty folders into one folder. In Windows you simply go to the root folder and search for *.jpg, and it will list all jpg files in these twenty folders.
    How can I achieve the same effect in OSX? The finder doesn't seem to understand that command...

    Activate the Finder and press COMMAND-F. You will see the button labeled "Kind" then "Any." Select "Image" from the second button. A third button appears labeled "All." Select JPEG from the third button. This will list all such images for the selected directory in the toolbar above. To find on the entire drive select This Mac. To save the search click on the Save button to the right.
    You can use the + button on the right to add additional search criteria. Obviously you can create some very complex searches with a little time and practice.

  • Copy a file into multiple folders action

    Hello All,
    I'm looking for help with a seemingly difficult action; I want to copy a text file into every folder within a location, if its not already there.
    I have over 100 projects ready to go out, and need to add a copyright notice .rtf file into each folder. Is there a way I can get Automator to do this? It would save me some time now, and certainly in the future.
    Thanks.

    rajneesh kumar wrote:
    -- Ask DBA to grant read , write privileges on this particular directory to your oracle user ie
    -- grant execute ON utl_file to your_user;
    -- grant read,write on directory john_test_dir to your_user;
    -- ALTER SYSTEM SET utl_file_dir = 'e:\jp_test\image_dir' SCOPE=SPFILE;
    -- restart the instanceNO! NO! NO!
    You should no longer use the utl_file_dir parameter as this has been deprecated by Oracle and replaced with directory objects. Setting the utl_file_dir parameter will leave your file system open to users corrupting files if you are not careful. This parameter should be unset of any value if it has any value set in it and you should set up directory objects instead.
    The correct thing to do is to create a directory object e.g.:
    CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
    Then, grant permission to the users who require access e.g....
    GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
    fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.

  • One dump file inport into multiple schema

    Hi,
    I need to import one dumpfile to multiple schema but it's not working.
    impdp "'system/redhat as sysdba'" dumpfile=CTBNGUMB_14022011.dmp logfile=CTBNGUMB_IMP_1602.log directory=DUMP_DIR remap_tablespace=NGUMB_TS:TRUSTWARE01 remap_tablespace=TRUSTWARE:TRUSTWARE01 remap_tablespace=NEXTGENREF:TRUSTWARE01
    remap_schema=CTBNGUMB:CTBNGUMB_1,CTBNGUMB:CTBNGUMB_2,CTBNGUMB:CTBNGUMB_3,CTBNGUMB:CTBNGUMB_4
    how can import one dumpfile to multiple schema?
    Edited by: 819136 on Feb 16, 2011 5:53 AM

    Hi,
    I want same schema import into different schams (users) is it possible?
    OS Version is Linux 4
    Oracle DB Version is : 10.2.0.4
    While importing getting the below error
    [oracle@sos02 10.2.0]$ impdp "'system/redhat as sysdba'" dumpfile=CTBNGUMB_14022011.dmp logfile=CTBNGUMB_IMP_17022011.log directory=DUMP_DIR remap_tablespace=NGUMB_TS:TRUSTWARE01 remap_tablespace=TRUSTWARE:TRUSTWARE01 remap_tablespace=NEXTGENREF:TRUSTWARE01 remap_schema=CTBNGUMB:CTBNGUMB_1 remap_schema=CTBNGUMB:CTBNGUMB_2 remap_schema=CTBNGUMB:CTBNGUMB_3 remap_schema=CTBNGUMB:CTBNGUMB_4
    Import: Release 10.2.0.4.0 - Production on Thursday, 17 February, 2011 9:24:32
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39046: Metadata remap REMAP_SCHEMA has already been specified.

  • Loading Flat files with into multiple tables using OWB

    Hi,
    How to implement the following logic in OWB.
    LOAD DATA
    INFILE 'myfile.txt'
    BADFILE 'myfile.bad'
    DISCARDFILE 'myfile.dsc'
    APPEND
    Into TABLE_Awhen (1:1) = 'A'
    (Col1 Position(1:1) CHAR,
    Col2 Position(2:5) CHAR)
    Into TABLE_Bwhen (1:1) = 'B'
    (Col1 Position(1:1) CHAR,
    Col2 Position(2:20) EXTERNAL INTEGER)
    Into TABLE_C
    when (1:1) = 'C'
    (Col1 Position(1:1) CHAR,
    Col2 Position(2:20) EXTERNAL INTEGER)
    I am using 10g version of OWB.I tried using the splitter operator.
    I am getting the following error when i use the splitter.
    An invalid combination of operators prevents the generation of code in a single implementation language (PL/SQL code, or SQL*Loader code, or ABAP code). For example, you may have included a SQL*Loader only operator such as the Data Generator in a mapping with a PL/SQL implementation type. If you designed the mapping to generate PL/SQL code, an invalid combination or sequence of operators prevents the generation of PL/SQL code in any of the operating modes(set based, row based, row based target only). If the mapping contains an operator that generates only PL/SQL output, all downstream dataflow operators must also be implementable by PL/SQL. You can use SQL operators in such a mapping only after loading the PL/SQL output to a target. Detail is as follows:
    PL/SQL set based operating mode: Operator trailer_source_txt does not support SQL generation.
    PL/SQL row based operating mode: Operator trailer_source_txt does not support SQL and PL/SQL generation.
    PL/SQL row based (target only) operating mode: Operator trailer_source_txt does not support SQL and PL/SQL generation.
    Both SQL and PL/SQL handlers are not supported by trailer_source_txt as output
    SQL*Loader: Operator SPLIT does not support SQL*Loader generation.
    ABAP: Operator trailer_source_txt does not support ABAP generation.
    Thanks in advance,
    VInay

    Hi
    Splitter can be used ib PL/SQL mappings, but if you use a flat file in a mapping, than it will be an SQLLoader mapping. So I suggest to you to create a mapping which load your flat file into a table, and from this table you load the data into the three table with the spillet in a PL/SQL mapping. Create two mappings.
    Or you can use an external table in a mapping with a splitter.
    Ott Karesz
    http://www.trendo-kft.hu

  • How to split file dynamically into multiple files according to row result

    Hello, I want to split and create new document after specific data by using BI Publisher. Can anyone help me.
    For e.g. I am running a report and it is giving 5 result rows and it is generating one file with all the 5 result rows but is it possible to generate new document or file for each row. So at last I will have 5 documents/files with me.
    Edited by: user10512424 on Aug 19, 2010 4:11 AM

    Hi ,
    I think bursting of the report will help you.
    Look the link below.
    http://www.strsoftware.com/blogs/oracle/2009/12/how-to-burst-and-deliver-documents-from-bi-publisher-enterprise/
    Thanks.

  • Using AppleScript to sort files Into Specified Folders based on Extension

    Hi All!
    Here is what I am trying to figure out. I would love some help with this script if anyone can lend a helping hand. I am currently using Hazel to do this but I think AppleScript will be alot more effective.
    Situation:
    - I have a folder with 4 different file types inside - the extensions are (.cop, .cof, .cos, .cr2)
    - These files need to be organized in this folder structure  Captureone > Cache > Proxies
                                                                                                                  > Settings50
    - The .cop & .cof files both need to be put in the "Proxies" folder
    - The .cos needs to be put in the "Settings50" folder
    - The .cr2 can stay where it is.
    I'm already using an AppleScript application where it automatically creates the folder structure in the current finder location, which works great. I use a program named Hazel to sort the files automatically into the folders where they need to go. Unfortunately all my computers at work don't have Hazel and I would like help to make a script. Any thoughts to add to my existing script?
    #  define a list of folders - items will need to be quoted if they contain spaces, etc.
    property theFolders : {"Captureone/Cache/Proxies", "Captureone/Settings50"} -- can also nest, e.g. "Inside/One"
    try
              tell application "Finder" to set targetFolder to (target of the front window) as alias
    on error -- no window
              set targetFolder to (choose folder)
    end try
    # build a parameter string from the folder list
    set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
    set {theFolders, AppleScript's text item delimiters} to {theFolders as text, tempTID}
    do shell script "cd " & quoted form of POSIX path of targetFolder & "; mkdir -p " & theFolders

    Hi,
    applescript_problems wrote:
    for example:
    master folder name: 1
    sub folder path: 1>2>3>4>5
    insdie folder 5 theirs 3 folders: 5a, 5b, 5c
    i want to name my files like so: "name_5a" "name_5b" "name_5c
    i want the scrip to pick up all the files that ends with the name "_5a" and place them in folder 5a
    I presume that the files are in the master folder not in the subFolders, that the files has an name extension.
    This script take the first two characters after the last underscore.
    It will move the file in the subfolder, according to the two characters found.
    set targetFolder to (POSIX file "") as alias --<-- drop the master folder between the double quotes
    tell application "Finder"
          repeat with tFile in (get files of targetFolder)
                set tName to name of tFile
                set subname to my getChar_1_2AfterLastUnderscore(tName)
                -- example : subname = "5c" -->  folder "5c" of folder "5" of targetFolder
                if subname is not "" then
                      tell folder subname of folder (text 1 of subname) of folder targetFolder
                            if exists then move tFile to it -- if exists this folder then move this file
                      end tell
                end if
          end repeat
    end tell
    on getChar_1_2AfterLastUnderscore(t)
          if "_" is in t then try
                set oTID to text item delimiters
                set text item delimiters to "_"
                set t to text 1 thru 2 of last text item of t
                set text item delimiters to oTID
                return t
          on error
                set text item delimiters to oTID
          end try
          return ""
    end getChar_1_2AfterLastUnderscore
    To get the exact path of the master folder :
    Drag/drop the folder between the double quotes in the first line of the script.

  • Zip'ing files from multiple folders to the same zip file

    Could somebody recommend a method to create a zip file with file contents from multiple folders? Or is there an application I can drag and drop a bunch of files to zip em?

    First highlight all of the folders or files. If they're not right next to each other, or on the same drives, hold down the Command key while clicking to choose the next without losing previous choices.
    Once they're all highlighted, right click on any highlighted item and choose "Compress xxx Items".

  • Multiple Folders in DCIM when using PC & USB...

    I have an Iphone 4 / 16GB / using 64Bit Windows 7 PC for USB connection...
    Note: This did not used to happen in version 4.X... Only after upgrading to 5.X this started happening...
    I take lots of photos and videos on a daily bases of my kids, work, etc...  when I connect my phone via USB and look into the DCIM folder; all photos and vidoes are being stored into different sub-folders randomly.
    Folders look something like:
    801FDGH
    805FDHT
    922GFFF
    etc...
    Looks like it saves images and videos up to 1000 counter in each folder; when thousand is reached it creates a new folder I'm currently at 5K since upgrade; so 5 diferent folders have been created... All older images and videos I had after upgrade are now split up into multiple folders which some only have 1/2 images...
    So I figured this would be uses; just short the folders by date / time stamp... well all folders have the same exact dates / time stamp so when looking for specific photos / vidoes I have to go into every single folder looks for them...
    In the past; when I hook my iphone up to the computer, it will only show the "DCIM" folder, then "100APPLE" sub folder.  Funny thing; when I hookup my Iphone to my work computer which is running on Windows XP; it shows normal only one 100APPLE...
    Any idea how I can fix this?  I have tried multple USB cables; this is very annoiging when I have to go hunting for images / vidoes?
    Thanks in advance.
    Paul

    Hi, I think I have the same problem. I have multiple folders as well. I just want all my pictures in one and I guess it has a capacity because it creates a new one after every 12 pictures (in my case)I have a screen shot but cant figure out how to upload it. But my iPhone is 3G not 3Gs

  • Automator workflow to TAR multiple files in a single directory into multiple TAR archives, in succession?

    Good afternoon,
    I have set up an automator service that TAR's a folder into an archive for me and it works quite nicely. Idealy however, I would like to be able to highlight several folders, right click and have automator tar each folder into it's own TAR archive, but do it one by one.
    Example:
    FOLDER 01
    FOLDER 02
    FOLDER 03
    Highlight all - Right Click - "TAR Folder" - Automator takes over at this point and TARs each one into:
    FOLDER 01.tar (Once complete moves onto:)
    FOLDER 02.tar (Once complete moves onto:)
    FOLDER 03.tar (Finished)
    I'm not 100% sure so I guess it would be a good time to verify, is there a problem with having the system try to TAR multiple folders at one time? If it is not a problem then I guess this discussion itself is pointless and I can simple right click on each folder and select "TAR Folder" and just wait until they're all finished. I would think that it would be ideal for the system to do each one individually and not try to do them all at one time.
    Any help would be appreciated.
    Thank you!!

    I don't think I have the following totally fleshed out but you probably can extrapolate on it.   This is a service which you can right click a set of folders  and it will tar the files within those selected folders with then file names "name xxx.tar", where name is the tar'ed file/folder and xxx is a count within the folder.
    I think that is what you originally specified so I am a bit confused by your script with the bit about Archive.tar. 
    Anyway here the basic idea:
    I ran the script directly with a folder argument just to see it indeed tar's up all the stuff inside, one tar per item.

  • Please add the ability to add multiple folders to the assets folder in order to better organize large numbers of files.

    Please add the ability to add multiple folders to the assets folder in order to better organize large numbers of files.

    Hello KDLadage
    Thank you for your recommendation. I understand the challenges of managing large numbers of files on the My Files page. I also understand the need to preserve project files.
    Perhaps a compromise would be to create an Archive tab under My Files. Previous versions and retired project files could then be automatically moved into this holding area when a new version is published, thus preserving the files in a separate area that is still accessible to the author.
    I will submit this suggestion to our product management team to consider as a future enhancement.

  • Importing CSV files into Multiple Tables in One Database

     I have a web based solution using Microsoft SharePoint and SQL Server that is created to centralize dat collection and reporting of program metrics used in montly reviews.
    A person from each program enters dat manual or by pushing the data using automated data import tools. The user then is able to generate reports and provide presentations to their stakeholders.
    There are are programs that are located in US and 2 that are located in Japan. All, including programs in Japan use the MS Project with a plug-in tool that allows them to auto input data. When the user click the "Send To.." button, the data goes
    in to multiple tables in one database.
    Everything is set up exactly the same for every program; however, we have discovered becase of a firewall, along with some of the different settings that the MS Project has over in Japan, the 2 program users are not able to auto import their data.
    The suggestion is to have the program users export the MS Project file into a CSV and email it. I will then take it and convert the data, such as the dates and place them on a Network Drive. There will be 2 folders, one for each program.
    I feel it will be an easy process just to load the data from the Network Drive into the same tables that are created for auto import.
    My Concerns/Questions:
    1. Should I create 1 SSIS package or should there be 2, one for each program?
    2. US and Japan program users send their data once a month. The converted files are going to be saved in the location marked with a date (ex:201402). How can i have it to where SSIS will automatically load the data every time i place new files in the designated
    folders or when i update an exsisting file?
    Can you provide an example with your suggestion please?
    I greatly appreciate the assistance!
    Y_Tyler

    Hello Vikash,
    Thank you! This will help me get started.
    There will be 2 folders, one with files with Program A data and the other with files with Program B data. All will have the same fields, just coming from different programs. You stated that I will be able to to load both in one package. Would there be two
    paths since there will be two separate folders?
    Using the example you provided, i am confident that I can create the package using one path into one table but not sure how to get the files from 2 paths (if there is) into multiple tables.
    Can you help clarify this for me?
    Thank you!
    Y_Tyler

  • Batch Process multiple files in multiple folders

    I am using Acrobat 8.0.0 on Windows XP.
    Is there a way to create some type of macro to combine multiple PDFs within multiple folders? Or better yet, I'd like to combine the files into a PDF package with security.
    Thanks, let me know if I need to be more clear of provide more info.

    Thanks!
    From what I can tell Process Multiple Files allows input from three places:
    1. A folder. 2. Import (like a scanner?) 3. Open files.
    So it might be nice if it had a 4th option that would allow files to come out
    of Organizer via tags, albums, etc. And if that option was chosen then it
    would be nice to save the tags, and create version sets optionally.
    But my guess is that from a product design perspective the thinking is
    that most people would rather work in Organizer and then perform
    actions on a logical set of photos from there. Certainly, that would be my
    preference.
    What I'd like to do is do be in Organizer, select my images via tag(s),
    run QuickFix on them, (all of that I can do), then reduce the file size,
    and save the finished product as a version set. Then only thing I can't do
    in PSE7 is reduce the file size. Of if there is I don't know how to do
    it automatically.
    Well, thanks for the help!

Maybe you are looking for

  • Tagged text to footnotes after XML import

    Hi all, I am close, I have found a solution on StackOverflow. However, guys there did not provide the final solution when all footnotes remain properly styled. Now I have the script below. It does the work properly but the styling is lost. It is poss

  • Where did my plug ins go!?

    I'm in the process of several upgrades. New Macbook Pro and then Yosemite. Everything was fine so far (PLAY worked fine), then I added some new sounds to my East/West SOL PLAY plug in folder and now PLAY has disappeared from my Audio Units drop down

  • How do I transfer my music from my old PC to my new laptop using my iPhone?

    I recently purchased a new laptop and would like to transfer all my songs from my PC to this laptop. however i heard that you could do this using the iPhone which all the music is on. my itunes on my laptop registers all the songs, it just wont let m

  • How do i upgrade to ios8

    hi I upgraded my phone to ios 8 but it now is just saying iTunes on my screen and my phone is not turning on.

  • Virus Scanning Options for Web Proxy

    Hi There, The release notes for 3.6 state that Virus Scanning is no longer supported as a function of the product. What options do I have to virus scan in and outbound content? Is there a virus scanner that plugs in via the NSAPI? Cheers Andrew