File Mover Blog

  • 21 Mar

    Q&A 41: Merge Multiple Input Files Into a Single Output File

    Q: Merge Multiple Input Files Into a Single Output File. We have a new requirement where we have multiple input files , but when this info is moved to the target server, then it should be combined into one single file – named for example… ‘ELEC_WHT_PRICESHEET.CSV’. Is there a way to combine all the input files into one output file?

    A: With WIN as Destination we have a File option: ‘Append if file exists’. The trick is to use the file rename option to rename the source files you want to append to the same destination filename.

    Limagito File Mover Merge Files

    Destination File Rename option:

    Limagito File Mover Merge Renaming

    If you need any help with this ‘Merge Multiple Input Files’ request, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Q&A WIN , ,
  • 10 Mar

    I have a load of FTP sites that customer upload to, difficult to manage

    Q: Have a request. I have a load of FTP sites that customer upload to and currently we have a Limagito move on each of those folders – we now have too many of them to manage. Am trying to cut these down to one move per group of users.

    So, if a file arrives in a folder ABCD the move will pick it up, report to the user that a file has arrived and place it in their User folders with an append to the name telling them that it arrive in folder ABCD. So customer called ABCD has uploaded a file named ‘my files to you’ to their folder called ABCD. The file(s) are picked up and moved to a new folder with and rename ‘ABCD-my files to you’. Pretty sure this is possible here. But have had bit of play around with it but its defeating me!!!

    A: So the FTP server has a root folder with 1 subfolder for each customer like

    D:\Root\CustomerA
    D:\Root\CustomerB
    D:\Root\CustomerC
    Limagito will scan D:\Root and will pickup files from subfolder CustomerA and move them to another folder with the prefix of CustomerA-filename.pdf
    Limagito will scan D:\Root and will pickup files from subfolder CustomerB and move them to another folder with the prefix of CustomerB-filename.pdf

    1.Please add the following ‘On Destination’ Pascal Script:
    LimagitoX File Mover Pascal Script

    Begin
      psExitCode:= 1;
      // ... add your code here
      psVSA := psStringReplace(psFilePath, psSourcePath, '');
      psVSA := psStringReplace(psVSA, '\', '');
    End.
    

    Limagito File Mover On Destination Pascal Script
    2. Add the following Destination File Renaming:

    Limagito File Mover File Renaming option
    Limagito File Mover File Renaming setup
    If you need any help with this ‘load of FTP sites’ request, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Pascal Script WIN
  • 10 Mar

    Q&A 41: How to trigger powershell scripts using Limagito File Mover

    Q: We would like to know how to trigger powershell scripts using Limagito.

    A: Please have a look at the example we received from one of our users

    Command Line:

    cmd /c powershell.exe -NoLogo -NonInteractive -file “D:\Scripts\Extract_Logs.ps1”

    Important:

    When using Powershell as Command Line tool, please disable ‘Redirect Command Output to Log’ op (Advanced tab).

    Limagito File Mover Command output to log
    If you need any help with this ‘trigger powershell scripts’ request, please let us know.

    Best Regards,

    Limagito Team

     

    By Limagito-Team Command
1 66 67 68 69 70 71 72 136
SEARCH