FTP Transfer: based on filename it needs to be moved to different directory

Hi,
I am doing a FTP transfer of file from one location to another. In this scenario, based on filename the file needs to be moved to Directory A or Directory B.
Is this possible having a single receiver file adapter?
Regards,
Ashish

Hi Ashish
What you can do is
1. You can pick the file from location and use variable substitution to deliver the file on base of filename. But the limitation is folder name should have some characters common to filename as well.
2. You can write file to a temperory location and then execute OS command to move the files to appropriate folders
3. Create two communication channels and enhanced receiver determination to find our which folder based on filename at runtime.
Thanks
Gaurav

Similar Messages

  • Why is Spotlight not finding images based on filename?

    I have 25,000 photos that I have meticulously named, but when I try to do a Spotlight search based on filename, nothing shows up.  For example, if I type "Disney," then about 200 photos with "Disney" in the file name should appear, but they don't. I can find the images on my own, for example "091012 CA Disney Family Vacation2," but Spotlight can not. Why?

    Hi there tau_ataina,
    Based you the issue you are describing, you may need to re-index Spotlight. Take a look at the article below for more information. 
    Spotlight: How to re-index folders or volumes
    -Griff W. 

  • Compression for ftp transfer before re-editing footage in FCP

    Hi to all,
    I am soon going to be receiving DV footage daily,that is going to be sent via ftp transfer. I will then be editing that footage and posting it on the web.
    The people sending the footage will have little internet access time during their trip.
    Since the end result is for web purposes, i would like the shooters to compress their PAL footage in 320x240 before posting in on the ftp.
    Would anyone have any suggestions as far as to what would be the most appropriate compression options out of FCP for it to be light enough to travel fast, and easily re-imported in FCP after arrival.
    I would assume i would then calibrate my projet to the settings that have been sent, right?
    thanks for your help.
    Tee.

    Thanks for your answers.
    I'm aware of the terrible quality loss that will be occurring.
    The end format is for the web, and the idea is to keep a chronicle of the 2 week event, with a short video update.
    The subject matter is what is of importance here. The event is a 2 week demonstration across europe against unemployment and growing social injustice.
    It would be great to have more time and money to use the original footage (via fedex and later editing).
    But i will try diffrent transfer options. One may work.
    My main question is, (with this totally random example)
    lets say i receive a compressed sorenson 3 .mov at 320x240 frame size, with a keyframe at every 15i, sound converted to stereo AAC at 96 kbps....
    When i import that file in final cut,can i adjust my presets to match that?
    Or will i need to edit in a DVPAL 720x576 preset, and render...
    thanks again;
    tee.

  • TOC based on filenames rather than heading names.

    I created a WebHelp project by linking to a FrameMaker 12 book. After first generating the output, the TOC and index were not included although they were part of the book. I click an icon in the TOC pod to generate the TOC, but the TOC is now based on filenames rather than heading names. How can I fix this?

    You should be posting over in the FM Integration section – you’ll need to adjust your Conversion settings and force an update to suck in the FM TOC and IX

  • FTP transfer progress bar

    I'm trying to write an FTP application by using FTP library provided with LabVIEW Internet Toolkit library.  I have a large file (>1GB) that I want to transfer from PXI Real-time controller to my host computer running Windows XP.  On my windows machine I would like to show the users the progress bar and percent of the file being transferred just like the FTP windows provided by MAX from NI. Please See the attached screen capture.  How do I accomplished that?
    Thanks!

    The low level file transfer is performed in vi.lib\addons\internet\utils\tcputil.llb\TCP Write Stream.vi
    There is a shift register that contains the bytes left unwritten that could be used to determine the progress.
    Issues:
    You would need to modify this VI to expose the bytes left unwritten to your UI.  In general, its not a good idea to change NI supplied VIs.
    This VI is reentrant. It may be possible to have more than one FTP transfer happening at the same time; so using a LabVIEW global to expose the value would not be a good idea.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • New to macbook pro and have msmoney files (mbf) stored on an external hard drive. I want to transfer them to MoneyWiz and need to convert them to qif.  Does anyone know of any free software available and how do I do it. Thanks.

    I am new to macbook pro and have msmoney files (mbf) stored on an external harddrive.  I want to transfer them to MoneyWiz and need to convert them to qif.  Does anyone know of any free software available and how do I do it. Thanks.

    iTunes>Preferences (Cmd+,)>Advanced
    Choose the Ext HD (and the appropriate folder) as the location for your library.

  • Im trying to publish a web gallery to BC, my settings seem correct but I'm still getting an  error: FTP transfer failed ' unknown error'. Techs on BC, say FTP working fine. Please help!

    Hey peeps,
    Im trying to publish a web gallery to be hosted on BC. Despite having what seem the correct settings im getting an error: FTP transfer failed ' unknown message'. Have checked with techs on BC. They say FTP working fine that end.
    Any suggestions?

    Have you tried connecting to another FTP server in Lightroom?
    For example, if you get a free Flickr account, can you login to it and upload a file to it?
    If you can't upload to any server, then you have a general FTP-in-Lr problem, but if problem is only with BC then, well, it's time to start scrutinizing the BC settings..
    PS - All my FTP'ing plugins have an enhanced FTP settings test feature designed to help you debug FTP settings, so another option is to download one of them, for example:
    robcole.com - FTPAggregator
    and experiment with settings tester:
    To get here, you have to click 'View / Edit Additional Settings' (in plugin manager), then choose 'New' or 'Edit' from 'Sync Pairs' drop-down menu.
    If test is unsuccessful, enable verbose logging (top section of plugin manager), and review the log file after test, or send to me.
    If you have a problem running plugin, please contact me directly:
    robcole.com - Contact Me
    Rob

  • XI 7.0 Flat File FTP Transfer

    We have an ERP 2005-NetWeaver system installed and in process.  In the XI(now called PI) we have it set up properly checked x3 by 2 different people and the SM and SLD up and configured.  Our first Business Scenario was to pull an iDoc from ERP 2005 and deliver it to the PO for a Legacy non-SAP system.  It eventually worked, the problem turned out to be "rights".
       Scenario 2 is to pull a Flat File via adapter FTP:// from the FTP Server to the ERP 2005 system. It dosn't work, log below, it appears to just disappear somewhere between the FTP:// server and the XI box integration engine or before.  We have tested the FTP Transfer from each machine using the MS Srvr FTP service and it works there just fine (even used the exact same sub-directories and user/attributes. We have also changed OS rights on the:
      .../XIREPOSITORY/* and all sub-directories to: Group;Everyone, Role: Full Control.  We have done numerous other things I'm too embarrassed to even mention, yet we still get the same response:
    <u><b>HOCFTP2MAIL_Sender</b></u>
    Sender Adapter v2703 for Party 'Holly_DataStream', Service 'HOC_Read DataStreamFile.'
    Configured at 2006-06-13  10:53:03  CDT
    History:
    -2006-06-13 13:11:03:09 CDT: Processing started
    -2006-06-13 13:11:02:09 CDT: Error: Retrieving file 'LOADPAYABLE1.xml' failed unexpectedly:  FTPEx: Directory does not exists
    -2006-06-13 13:11:02:08 CDT: Processing started
    -2006-06-13 13:11:02:08 CDT: Error: Retrieving file 'LOADPAYABLE1.xml' failed unexpectedly:  FTPEx: Directory does not exists
    -2006-06-13 13:11:02:07 CDT: Processing started
    HOC READFile is set to 'inactive' as it never yeiled any information of use at this problem just one mamonth file.

    Pat
    It clearly says that it dont have the directory. Also eventhough it is there might be you would have given wrong credentials. So can you please once again give and check? After this go to sxmb_moni and check whether you find any error?
    In the last try to check the message display tool so that you can know till where your message has flown? You can log into the message display tool from http://<hostname>:<portno>/MessagingSystem/monitor/auditlog.jsp
    Regards,
    ---Satish

  • How to automate layer stack creation including layer masks based on filename?

    Hi
    Can someone help me to create a script that would automate the creation of layers including a layermask, based on filenames.
    E.g.
    Unwrap_001_diffuse.jpg
    Unwrap_001_mask.jpg
    Unwrap_002_diffuse.jpg
    Unwrap_002_mask.jpg
    The image with the suffix "_diffuse" would be the layer and the image with the suffix "_mask" would be the layermask.
    In the above example the script would create 1 psd with 2 layers.
    If there is no file with the ending "_mask", the script would only create a single layer with no layermask.
    Any help would be highly appreciated.
    Thank you
    Boris
    I

    For starters the Folder-selection dialog could be used if the images are all in one Folder.
    var theFolder = Folder.selectDialog ("select folder");
    And then the method getFiles could be used to get the files.
    var theFiles1 = theFolder.getFiles("*_diffuse.jpg");
    Loading the file as Layers can be done with the ScriptingListener code for File > Place for example and finding the corresponding mask files seems fairly easy.
    Are they grayscale or RGB?
    But why jpg anyway?
    Are those renderings?
    If so why not tiffs or some other non destructively compressed file format?

  • I am downloading music from itunes it shows on my purchased playlist but when i try to transfer it onto a specific playlist it won't transfer across what do i need to do

    i am downloading music from itunes it shows on my purchased playlist but when i try to transfer it onto a specific playlist it won't transfer across what do i need to do

    When you are viewing the tracks on the hard disc, did you then click on "Import CD"?  This is needed to initiate the importing process that will add the tracks to your library.

  • Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    File > Add File/Folder to iTunes

  • Transfer file  from Windows PC with the Imac transfer programme . Do I need to activate bootcamp to view files on my new intelMac

    I want to transfer files and folders from Windows PC with the Imac transfer programme . Do I need to activate bootcamp to view files on my new intelMac.

    in my finder my windows partition show up under devices with the name given to the hd
    but because it's ntfs is read only

  • CRIO FTP transfer file size limit

    Hi,
    I generated a data file on my cRIO that is about 2.1 GB in size. I'm having trouble transferring this file off of the cRIO using FTP. I've tried windows explorer FTP, the built in MAX file transfer utility, coreFTP,and WinSCP. I am able to transfer other files on the cRIO that are smaller in size.
    Is there an FTP transfer file size limit? Is it around 2 GB? Is there anything I can do to get this file off of the device?
    Thanks!
    Solved!
    Go to Solution.

    I am not making the FTP transfer programmatically through LabVIEW. Rather, I am trying to utilize the cRIO's onboard FTP server to make the file transfer using off the shelf Windows FTP file transfer applications. I generate the data file by sampling the cRIO's analog inputs and recording to the onboard drive. I transfer the file at some point after the fact; whenever is convenient.
    To program the cRIO, I am using LabVIEW 2012 SP1 and the corresponding versions of Real-Time and FPGA. I am using a cRIO-9025 controller and 9118 chassis.
    I do not get any error messages from any of the FTP clients I have tried besides a generic "file transfer failed".
    I have had no issues transferring files under 2 GB using FTP clients. I have tried up to 1.89 GB files. The problem seems to only appear when the file is greater than 2 GB in size.
    I have found some information elsewhere online that some versions of the common Apache web server do not support transferring files greater than 2 GB. Does anyone know what kind of FTP server the cRIO-9025 runs?

  • Using javascript to save a pdf to a different directory and generating a new filename based on form fields in the document.

    I have built the following script in an attempt to create a submit button that will automatically save the document in a different directory on my computer. It will also use the form field data "customer" and "date" to generate the filename. I printed out the variable myPath and it looks like it printed the correct string. I keep getting the following error:
    TypeError: redeclaration of const path
    any help would be much appreciated.
    var customer = this.getField("Customer").value;
    var date = this.getField("Date").value;
    var path = "C:/Users/awilliams/My Documents/Test/"
      var reg = date.match(/(\d+)\/(\d+)\/(\d+)/);
    var myPath= "C:/Users/awilliams/My Documents/Test/" + customer + "_" + reg[1] + "." + reg[2] + "." +
    reg[3] + ".pdf";
    this.saveAs(myPath);

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • Trying to create an Applecreate to rename files into folders based on filename

    I am trying to create an AppleScript that will take a file (a.b.c.txt forexample) and create a directory from the filename minusextensionand then move the file into that directory
    ie.a.b.c>a.b.c.txt
    I found this script from red_menace
    {input, parameters} -- create folders from file names and move
      set output to {} -- this will be a list of the moved files
      repeat with anItem in the input -- step through each item in the input
        set {theContainer, theName, theExtension} to (getTheNames from anItem)
        try
          set destination to (makeNewFolder for theName at theContainer)
          tell application "Finder"
            move anItem to destination
            set the end of the output to the result as alias -- success
          end tell
        on error errorMessage -- duplicate name, permissions, etc
          log errorMessage
          # handle errors if desired - just skip for now
        end try
      end repeat
      return the output -- pass on the results to following actions
    end run
    to getTheNames from someItem -- get a container, name, and extension from a file item
      tell application "System Events" to tell disk item (someItem as text)
        set theContainer to the path of the container
        set {theName, theExtension} to {name, name extension}
      end tell
      if theExtension is not "" then
        set theName to text 1 thru -((count theExtension) + 2) of theName -- just the name part
        set theExtension to "." & theExtension
      end if
      return {theContainer, theName, theExtension}
    end getTheNames
    to makeNewFolder for theChild at theParent -- make a new child folder at the parent location if it doesn't already exist
      set theParent to theParent as text
      if theParent begins with "/" then set theParent to theParent as POSIX file as text
      try
        return (theParent & theChild) as alias
      on error errorMessage -- no folder
        log errorMessage
        tell application "Finder" to make new folder at theParent with properties {name:theChild}
        return the result as alias
      end try
    end makeNewFolder
    But my problem with this script is that it does messes up if the file name includes the period, from my example, the listed script will make directorys a, b, and c instead of a.b.c

    You can use this Automator Workflow:
    for f in "$@"
    do
      d=${f%.*}
      if [ ! -d "$d" ]; then 
           mkdir "$d"
      fi
      mv "$f" "$d"
    done

Maybe you are looking for