rename

  • 09 Aug

    How to receive email notifications of renamed filenames

    Receive email notifications

    Q: Can you please tell me if this destination file name parameter is now working in your new version? I want to receive email notifications with the file names that are placed in the destination. For example, the source file name is test.txt, and I have a renaming rule to rename file to text_202511212025.txt (Adding the date of the file move). And I want to see the renamed file name in the email. Long time ago, you guys showed me how to add the whole logging history in the email using Pascal script, but I forgot what to do.

    limagito filemover email setup

    A: Not all parameters are available at each step of the scan flow.

    limagito filemover parameter options

    Please check the following information on how we did this:

    – Moving Rule Menu item > Pascal Script option

    limagito filemover pascal script option

    – Enable ‘On Rule Begin’ script and add:  psVSA := ”;
    We’ll use psVSA (parameter Var String A) as a container for the renamed file names sent to the Destination. This psVSA will be used in the email setup.

    limagito filemover Pascal script

    – Add an extra PScript as Destination:
    We used psRFN here  = Renamed File (destination) Name
    limagito filemover pascal script as destination setup
    – Important is to set the Renaming the same as you did previously in the existing Destination. We need this because of the information that will appear in the email.
    limagito file mover renaming setup
    – Then use psVSA in your email event:
    limagito filemover rule events option
    – %VSA will use the data from the added PScript Destination
    limagito filemover email setup
    – We enabled ‘Trigger mail event after scan’ because we only need a single email to be send after the scanning is done.
    limagito filemover rule events options

    If you need any help about this ‘receive email notificationsl’ question, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement #limagito

    By Limagito-Team Email Rename ,
  • 10 Jul

    How to rename files and add the folder name on each file

    How to rename files and add the folder name on each file?

    Q: I was wondering if you could help me.

    I did do quite a bit of searching over the last few days trying to find a solution, and just couldn’t get it worked out.

    I have a lot of folders with PDFs in them.

    The folders are named:
    01-01-2025
    01-02-2025

    and so forth. Each folder has a number of PDFs in them, named as:

    A1.pdf
    A2.pdf
    A3.pdf
    A10.pdf

    and so forth. Each folder has a number of PDFs and they are all identically named, as in letter number.pdf.

    Can you help me get a set up where, if I drop a folder in a source folder, Limagito processes the and puts the folder name on each file, as in

    20250102_A_0001.pdf
    20250102_A_0002.pdf

    and

    20250102_B_0001.pdf

    and

    20250102_A_0010.pdf
    20250102_A_0011.pdf

    and so forth. This would be a move, with the files going into a folder with the same name as the original, if possible.

    This would be really huge if you could help me. I probably have 15 years of folders that need to be processed, for about 20 publications.

    We are trying to send a lot of archives to newspapers.com, and this is the naming convention they prefer.

    If there is anything else you need from me please let me know. Thank you in advance for any help.

    A: Yes this is possible using our Destination file rename option:

    • Windows Folder as Source. Root folder in our case is C:\Test\In_PDF\

    limagito file mover windows folder as source

    • File Filter setup, we only want to handle pdf files in our example:

    limagito file mover filename include filter

    • Directory Filter setup: we only want to handle files within subdirectories one level deep:

    limagito file mover directory filter setup

    • Move Files, during the test we used Copy Files:

     

    limagito file mover function setup

    • Windows folder as Destination:

    limagito file mover destination setup

    • Destination Rename Files:

    limagito file mover file rename setup

    • Rename Files Setup:

    limagito file mover file rename setup

    (.)(\d\d\d\d)\.(.*)
    %SFS:7-10:%SFS:1-2:%SFS:4-5:_\1_\2.\3
    CEM
    (.)(\d\d\d)\.(.*)
    %SFS:7-10:%SFS:1-2:%SFS:4-5:_\1_0\2.\3
    CEM
    (.)(\d\d)\.(.*)
    %SFS:7-10:%SFS:1-2:%SFS:4-5:_\1_00\2.\3
    CEM
    (.)(\d)\.(.*)
    %SFS:7-10:%SFS:1-2:%SFS:4-5:_\1_000\2.\3
    CEM

     

    • RunTime Log Result:

    limagito file mover runtime log

    • Source folders used during this test:

    limagito file mover folder name on each file

    limagito file mover folder name on each file

    limagito file mover folder name on each file

    Feedback from customer:

    OMG… thank you so much. You guys are awesome.
    I’ve tested it and it works perfectly.
    I think this will probably help me with some other files that have single and double digit page numbers.
    You have my deepest appreciation.

    If you need any help with this ‘folder name on each file’ question, please let us know.

    Best Regards,

    Limagito Team

    #regex #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Rename
  • 08 Jun

    How to rename a file using its parent folder name

    How to rename a file using its parent folder name

    Q: When working with Limagito, we were wondering if you had recommendations on how to handle this scenario.

    1. We would like to transfer files from a directory lets call it E:\Orignal Location. I have two folders and files under this directory below.
      • Under E:\Orignal Location\UNIT_1_4.1.2025\history.xml
      • Under E:\Orignal Location\UNIT_2_5.1.2025\history.xml
    2. We would like to rename the history.xml to the parent folder name, highlighted above, while moving it to final file location E:\Final Location
    3. The file result we are looking for is for two files in the location  E:\Final Location:
      • UNIT_1_4.1.2025.xml
      • UNIT_2_5.1.2025.xml

    How would you recommend configuring, or is it possible to configure the renaming since the value we want to rename is the parent name, while also moving the file to a new location with Limagito.

    A: We did a test with pdf files instead of xml, but the result would be the same.

    In your case,  E:\Orignal Location\ would be the WIN Source

    Our Directory Filter setup:

    limagito file mover directory filter option

    limagito file mover directory setup

    Destination Setup:

    limagito file mover destination setup

    limagito file mover destination options

    limagito file mover Windows folder as destination

    Please uncheck ‘Create Subdir’ because all files should go to the same folder:

    limagito file mover destination file and directory options

    Enable ‘Rename Files during Copy/Move’

    limagito file mover destination file rename option

    – Add the following file renaming setup:
    RegEx:  (.*)\.(.*)
    Replacement:  %SFS.\2

    limagito file mover destination file rename setup

    – Alternative file renaming setup when you have multiple levels of subfolders:

    • %SFS:?=?: parameter option was added recently
      • %SFS:0=1:
        • 0 > start at the end of the subfolders(s) Var %SFS > %SFS = Source File Subfolder(s)
        • 1 > use the last subfolder part only
    RegEx:  (.*)\.(.*)
    Replacement:  %SFS:0=1:.\2

    limagito file mover file renaming setup

    – RunTime Log result:

    limagito file mover runtime log result

    If you need any help with this question, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team How-to Rename , ,
1 2 3 4
SEARCH