File Mover Blog

  • 18 Mar

    Strip date from filename filter and move files older than the x days

    Strip date from filename filter and move files older than the x days

    Q: I want to make a file filter-> regex filter able to move files older than the current date -n to another folder.

    The files i question are named like this: hjernetrim-quiz-helside_2025-01-28.pdf (hjernetrim-quiz-helside_yyyy-mm-dd.pdf)

    I can’t figure out how to use the regex Filter. I have no luck with this: hjernetrim-quiz-helside_TCD:[IncDay-5]yyyy-mm-dd:
    Can you help me finding the correct filter syntax?
    A: In this case we are going to strip the date part from the filename and convert it to a Date. Afterwards we’ll compare this with the current date and when older than 5 days we’ll allow the file to be moved. We are not going to use a file filter for this but instead use a little script.
    • First setup your Source, we used a Windows folder as Source:
    limagito file mover windows folder as source
    • Open our Pascal Script option:
    limagito file mover pascal script option
    • Enable and add the following ‘On Destination’ script:  link
      • You can adjust the ctOlderThanDays Const if needed. At the moment it is set to 5
    limagito file mover strip date from filename
    • As Destination we used a Windows Folder:

    limagito file mover windows folder as destination

    • RunTime Log Result:

    limagito file mover runtime log result

    If you need any help with this “strip date from filename filter”, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

  • 16 Mar

    Rename a file when it is sent to the destination

    Q: We are trying to rename a file when it is sent to the destination. I am struggling to make this work.  I have renamed files in the past when they have an extension already however these files do not have an extension. For example we want to move file test (no ext) to a new folder and add .dat to the end so the file in the new folder is called test.dat

    A: The Destination has a File Rename option which uses Regular Expressions

    Please have a look at the following screenshot:

    RegEx:  (.*)

    Replacement:  \1.dat

    limagito file mover rename afile

     

    If you need any help with file renaming, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Rename
  • 15 Mar

    Converting images to pdf with limagito file mover

    Converting images to pdf with limagito file mover

    In Limagito File Mover v2025.2.16.0 we added the Imageen PDF plug-in. This makes it possible to use our Image as destination and convert images to pdf. The setup is very simple.

    • We used a Windows folder as Source:

    limagito file mover windows folder as source

    • We used the following Filename Inlcude Filter, only interested in jpg and tiff files:

    limagito file mover filename filter setup

    • As Destination we used IMAGE:

    limagito file mover destination setup

    • IMAGE as Destination Setup:
      • First Action is ‘Geomatric Manipulation’ because we want tor rotate the image first
      • Second Action is ‘Output to File’

    limagito file mover image manuplation as destination setup

    • Geometric Manipulation:

    limagito file mover image rotation as destination setup

    • Output to File:

    limagito file mover image output to file

    • The converting to pdf is done using our File Rename option. The engine will know what to do if it finds a different file extension as destination.

    RegEx:  (.*)\.(.*)

    Replacement:  \1.pdf

    FYI: You can adjust the Replacement setup to convert to other image formats too, like png:  \1.png

    limagito fil emover image as destination renaming setup

    • RunTime Log Result:

    limagito file mover runtime log result

    If you need any help with this “images to pdf” option, please let us know.

    Best Regards,

    Limagito Team

    #PDF #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Image PDF , ,
1 2 3 4 149
SEARCH