How-to

  • 20 Jul

    How to halt moving too many files and send an alert

    How to halt moving too many files and send an alert

    Q: I have a job that moves files from an external S3 bucket into our local storage. The other day a vendor hiccupped and sent 8000 files. Limagito did it’s job and moved them over, which ended up gumming up our systems. Is there any way to limit transfers? I’ve been looking through Help and haven’t seen anything yet.

    For instance…I know this vendor normally sends around 10 a month. Anything over 50 would obviously be abnormal and It would be great to throttle them, even better to send an alert and let us know, so we can correct the issue.

    Any help would be greatly appreciated.

    A: Please have a look at the following setup. So we’ll allow only a maximum of files per month.

    • We used a Windows folder as Source:

    halt moving too many files

    – Function Setup > set Destination Options to ‘Destination Memory & Exit Cyclus on Error’

    limagito file mover function setup

     – Destination Setup:
    • First Destination: Pascal Script
      • This script will check the month and the amount of files it successfully moved
      • You can adjust the “ctMaxFilesAllowed” Const value to allow more or less files per month
    • Second Destination: your output, can be any Destination type.
    • Third Destination: Pascal Script
      • Will increase the internal counter (VIA) if a file is successfully moved
    Link to both scripts, for the first and third Destination.
    limagito file mover Destination setup
    First Destination (Pascal Script):
    limagito file mover halt moving too many files
    Third Destination (Pascal Script):
    limagito file mover halt moving too many files
    – Open Our Rule Events option:
    limagito filemover rule events option
    – Select and enable ‘On Pascal Script Error’ event. Enable ‘Enable Mail’ and adjust the mail setup. There is a test button available.
    limagito file mover rule events setup
    Enable the ‘Error event memory’ because otherwise you’ll get too many emails in case the maximum of files is reached.
    limagito file mover rule events setup
    FYI: When you would test this setup and max files are reached we added a way to reset the internal counter (max files allowed per month).
    Right click on the Counter value below and select ‘Reset Counter’.
    limagito file mover reset counter

    This is is just an example of what is possible. If you need any help with this ‘halt moving too many files’ setup, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

  • 19 Nov

    How to rename a file to include day of the week

    How to rename a file to include day of the week

    Q: I found this in your blog but my filename pattern is different and I don’t know enough of the Pascal language to edit it.

    Here is an example of what I would like to rename.

    Original Filename: 2023-10-24_section_A2.pdf
    (2023-10-24 = October 24, 2023)
    Rename To:  Tues_2023-10-24_section_A2.pdf

    Any help you can provide would be greatly appreciated.

    A: Please have a look at the following example, I guess we need to fine-tune it. Let us know what you think.

    • We used a Windows folder as source:

    limagito file mover windows folder as source

    • Next, open our Pascal Script option:

    limagito file mover paascal script option

    • Enable and add the following ‘On Destination’ Pascal Script:

    You can download the script: here

    limagito file mover include day of the week pascal script

    • We used a Windows Folder as Destination:

    limagito file mover windows folder as destination

    •  Enable ‘Rename Files during Copy/Move’

    limagito file mover file renaming option

    • Renaming Setup:

    RegEx:   (.*)
    Replacement:   %VSA

    limagito file mover file renaming setup

    • RunTime Log Result:

    limagito file mover runtime log result

    #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘include day of the week’ request, please let us know.

    Best Regards,

    Limagito Team

  • 13 Nov

    How to move files and folders automatically at certain times

    How to move files and folders automatically at certain times

    Q:

    DE: Ich versuche es herauszufinden wie ich die Daten und Ordner zu bestimmte Zeit automatisch verschieben lasse.

    Bsp. Täglich um 11:00 Uhr. Hab es versucht doch leider kriege ich es nicht hin. Können Sie mir da Helfen.

    EN: I am trying to figure out how to move the files and folders automatically at certain times.

    For example, daily at 11:00 a.m. I have tried but unfortunately I can’t get it to work. Can you help me?

    A:

    This is possible using our Scheduler option. The ‘Schedule’ setup determines when a Rule (= Task) is automatically triggered. I’ve marked the ‘Schedule’ button in the following screenshot. We have a couple of ways to trigger (= start) a Rule.

    In the first example we used a timer. In this ‘How To’ we are going to use the ‘Scheduler’ option instead so I’ve disabled the ‘Timer’ option.

    limagito file mover scheduler setup

    Switch to ‘Scheduler’ tab and enable ‘Use Scheduler’. Next click <Add>:

    limagito file mover automatically at certain times

    Please have a look at the following schedule setup.

    • Give the newly added schedule a ‘valid’ name, this will help you later to understand the goal of this schedule.
    • Do not change ‘Begin Schedule’ if you don’t need it. Default is the DateTime when the schedule was added.
    • Do not change ‘End Schedule’ if you do not need it. Default is ‘Never’.
    • You can test your setup by using the <RUN> button. This will only show some information about when the Rule would be triggered when using the current setup. It helps you to check your setup. Click <Stop> to exit the test.
    • Click <Save> when the schedule setup is ready.

    limagito file mover automatically at certain times

    New schedule was added, click <Save> and please do not forget to enable the Rule afterwards. Icon should turn blue when it is enabled. A disabled Rule (grey) will not receive any trigger.

    limagito file mover scheduler option

    Important, when using a Single trigger like once a day, it is very important that the ‘Stabilized File Check’ is disabled. This option needs at least two scans because it will compare the size of the  files between 2 scans.

    limagito file mover stabilized file check

    #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘automatically at certain times’ option, please let us know.

    Best Regards,

    Limagito Team

1 2 3 4 6
SEARCH